Jira issue originally created by user @asm89:
The SQL generated when using strings in the THEN and ELSE parts of the CASE expression are not valid.
This testcase will fail:
"SELECT g.id, CASE WHEN ((g.id / 2) > 18) THEN 'Foo' ELSE 'Bar' END AS test FROM Doctrine\Tests\Models\CMS\CmsGroup g",
"SELECT c0.id AS id0, CASE WHEN (c0_.id / 2 > 18) THEN 'Foo' ELSE 'Bar' END AS sclr1 FROM cms_groups c0"
Noticed by a user at github:
Comment created by @guilhermeblanco:
Fixed by 7954386
@beberlei please merge in 2.2! =D
Issue was closed with resolution "Fixed"