DDC-458: DQL parser issue when using IN () #572

Closed
opened 2026-01-22 12:43:07 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 23, 2010).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user grekker:

If you create a query like the following, you will get an exception about receiving a string literal when you try to execute it.

$em->createQuery( "select e from MyEntity e where e.id in (1,2,3,4,5)" );

The following query, however, works fine:

$em->createQuery( "select e from MyEntity e where e.id in (1, 2, 3, 4, 5)" );

Note the spaces after the commas.

Originally created by @doctrinebot on GitHub (Mar 23, 2010). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user grekker: If you create a query like the following, you will get an exception about receiving a string literal when you try to execute it. $em->createQuery( "select e from MyEntity e where e.id in (1,2,3,4,5)" ); The following query, however, works fine: $em->createQuery( "select e from MyEntity e where e.id in (1, 2, 3, 4, 5)" ); Note the spaces after the commas.
admin added the Bug label 2026-01-22 12:43:07 +01:00
admin closed this issue 2026-01-22 12:43:07 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2010):

Comment created by @guilhermeblanco:

In r7456 this issue was fixed.

@doctrinebot commented on GitHub (Mar 23, 2010): Comment created by @guilhermeblanco: In r7456 this issue was fixed.
Author
Owner

@doctrinebot commented on GitHub (Mar 23, 2010):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 23, 2010): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#572