Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2205

Negative Values in Case Then expressions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4
    • Component/s: DQL
    • Security Level: All
    • Labels:

      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.

        Activity

          People

          • Assignee:
            Fabio B. Silva
            Reporter:
            Ilya Biryukov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: