Skip to content


DDC-1696: String support in THEN and ELSE part of CASE expression is broken #2343

doctrinebot opened this Issue · 2 comments

2 participants


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, CASE WHEN (( / 2) > 18) THEN 'Foo' ELSE 'Bar' END AS test FROM Doctrine\Tests\Models\CMS\CmsGroup g",
"SELECT AS id0, CASE WHEN ( / 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"

@doctrinebot doctrinebot added this to the 2.3 milestone
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.