Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1823

Error with IN and UPPER in the same line

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.3
    • Component/s: DQL
    • Security Level: All
    • Labels:
      None

      Description

      I have a problem making a DQL query

      SELECT c.id, c.name
      FROM BrandBundle:Brand c
      WHERE UPPER(c.name) IN (:values)

      :values is an array of possible names of brands.

      The error shown is

      [Syntax Error] line 0, col 109: Error: Expected Doctrine\ORM\Query\Lexer::T_IN, got '('

        Activity

        Aitor Suso created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Guilherme Blanco made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 10185 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13705 ] jira-feedback [ 15346 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15346 ] jira-feedback2 [ 17210 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17210 ] jira-feedback3 [ 19465 ]

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Aitor Suso
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: