Skip to content

Loading…

DDC-1572: LIKE expressions doesn't allow the matching pattern to be a string function #2209

Closed
doctrinebot opened this Issue · 5 comments

2 participants

@doctrinebot

Jira issue originally created by user adrive:

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:
{quote}
[Syntax Error] line 0, col 82: Error: Expected Doctrine\ORM\Query\Lexer::T_STRING, got 'LOWER'
{quote}

It is not possible to construct queries like this:
{quote}
SELECT u.name FROM Doctrine\Tests\Models\CMS\CmsUser u WHERE UPPER(u.name) LIKE UPPER(:str)
{quote}

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

@doctrinebot

Comment created by @beberlei:

Assigned to Guilherme

@doctrinebot

Comment created by @beberlei:

This issue is referenced in Github Pull-Request GH-245
#245

@doctrinebot

Comment created by @beberlei:

This was merged

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot

Comment created by @doctrinebot:

A related Github Pull-Request [GH-245] was closed:
doctrine/dbal#245

@doctrinebot doctrinebot added this to the 2.3 milestone
@doctrinebot doctrinebot closed this
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.