Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1572

LIKE expressions doesn't allow the matching pattern to be a string function

    Details

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

      Description

      Like expressions doesn't allow the matching apttern to be a function returning string like LOWER(column) LIKE LOWER(:param)

      Query parsers is returning exception like this:

      [Syntax Error] line 0, col 82: Error: Expected Doctrine\ORM\Query\Lexer::T_STRING, got 'LOWER'

      It is not possible to construct queries like this:

      SELECT u.name FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE UPPER(u.name) LIKE UPPER(:str)

      I'll create a pull request on github for this issue.

        Activity

        Miloslav "adrive" Kmet created issue -
        Hide
        Benjamin Eberlei added a comment -

        Assigned to Guilherme

        Show
        Benjamin Eberlei added a comment - Assigned to Guilherme
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Assignee Benjamin Eberlei [ beberlei ] Guilherme Blanco [ guilhermeblanco ]
        Hide
        Benjamin Eberlei added a comment -

        This issue is referenced in Github Pull-Request GH-245
        https://github.com/doctrine/doctrine2/pull/245

        Show
        Benjamin Eberlei added a comment - This issue is referenced in Github Pull-Request GH-245 https://github.com/doctrine/doctrine2/pull/245
        Hide
        Benjamin Eberlei added a comment -

        This was merged

        Show
        Benjamin Eberlei added a comment - This was merged
        Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 10185 ]
        Resolution Fixed [ 1 ]
        Benjamin Eberlei made changes -
        Issue Type Bug [ 1 ] Improvement [ 4 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13319 ] jira-feedback [ 15173 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 15173 ] jira-feedback2 [ 17037 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17037 ] jira-feedback3 [ 19290 ]
        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-245] was closed:
        https://github.com/doctrine/dbal/pull/245

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-245] was closed: https://github.com/doctrine/dbal/pull/245

        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-1572, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Miloslav "adrive" Kmet
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: