Details
Description
DQL Expression:
SELECT (CASE WHEN t.id = 1 THEN -1 ELSE t.id END) FROM Table t
Gives an error:
[Syntax Error] line 0, col 32: Error: Unexpected '-'
It doesn't seem to like the negative number.
DQL Expression:
SELECT (CASE WHEN t.id = 1 THEN -1 ELSE t.id END) FROM Table t
Gives an error:
[Syntax Error] line 0, col 32: Error: Unexpected '-'
It doesn't seem to like the negative number.
Fixed : https://github.com/doctrine/doctrine2/commit/8b5e4a9a52670992b85e7223d255b98cf77a35a3