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 ]
        Hide
        Guilherme Blanco added a comment -

        This is already fixed in master for a long time and should be available in 2.3, since it requires major changes in DQL.

        Show
        Guilherme Blanco added a comment - This is already fixed in master for a long time and should be available in 2.3, since it requires major changes in DQL.
        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 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-1823, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated:
              Resolved: