DDC-1472: WHERE <<function>> IN ... doesn't work #1843

Open
opened 2026-01-22 13:28:13 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 6, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user cevou:

I have a query which is supposed to compare a result of a user defined function with a set of possible results
SELECT ... WHERE YEAR(w.date) IN (.......)

But I get the error:
[Syntax Error] line 0, col 49: Error: Expected Doctrine\ORM\Query\Lexer::T_IN, got '('

If I only compare the result of the function with a single value everything works as aspected:
SELECT ... WHERE YEAR(w.date) = 2011
.. works!

I also testet it with other functions like DATE_DIFF, etc. but always get the same error.

Originally created by @doctrinebot on GitHub (Nov 6, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user cevou: I have a query which is supposed to compare a result of a user defined function with a set of possible results SELECT ... WHERE YEAR(w.date) IN (.......) But I get the error: [Syntax Error] line 0, col 49: Error: Expected Doctrine\ORM\Query\Lexer::T_IN, got '(' If I only compare the result of the function with a single value everything works as aspected: SELECT ... WHERE YEAR(w.date) = 2011 .. works! I also testet it with other functions like DATE_DIFF, etc. but always get the same error.
admin added the Bug label 2026-01-22 13:28:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1843