mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Unable tu use LIKE on numbers and subqueries #5479
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Seb33300 on GitHub (Mar 27, 2017).
Hi,
When trying to use a
LIKEcondition on number and sub queries:or
I am having a DQL syntax error query exception:
I am able to use theirs conditions in SQL, so is it a DQL bug?
Thanks
@Ocramius commented on GitHub (Mar 30, 2017):
LIKEworks with aStringExpressionas per http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/dql-doctrine-query-language.html#scalar-and-type-expressionsDoes it work when using a placeholder, instead of a hardcoded string?
@Seb33300 commented on GitHub (Mar 31, 2017):
I hardcoded for the example, but I have the same issue with placeholder binded with
setParameter.@Seb33300 commented on GitHub (Oct 12, 2017):
This issue also happens when using
LIKEwithCASE WHEN:@lcobucci commented on GitHub (Oct 29, 2017):
@Seb33300 could you please send us a failing test case that reproduces that behaviour? It would help us a lot to identify and fix the issue you're describing.
You can find examples on
388afb46d0/tests/Doctrine/Tests/ORM/Functional/Ticket@Majkl578 commented on GitHub (Dec 9, 2017):
This isn't a bug actually, it's simply behavior that is currently not supported by the parser and language.