mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2268: Lexer error using string functions inside CASE WHEN #2851
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Feb 2, 2013).
Jira issue originally created by user vecchia:
When using the CASE WHEN expression in DQL a Lexer error is thrown if the THEN condition uses a FunctionsReturningStrings function. For example, the following query is valid in SQL:
sqlSELECT t.*, CASE WHEN LENGTH(t.myfield) <> 0 THEN CONCAT(t.myfield, t.myfield2) ELSE t.myfield2 END as mycasefield FROM mytable AS tHowever, if the CONCAT function is used in DQL the exception is raised.
@doctrinebot commented on GitHub (Feb 2, 2013):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Feb 2, 2013):
Comment created by @FabioBatSilva:
1627fc9596