DDC-1416: bug in simple test with sub query #1775

Closed
opened 2026-01-22 13:25:41 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 13, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user waldo2188:

For exemple :

$query = $em->createQuery("SELECT * FROM address WHERE :aValue IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)");
$query->getQuery()->getSQL();

Doctrine throw that error : Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col xxx near ':aValue': Error: ':aValue' is not defined.

But in SQL this type of request is posible.

Originally created by @doctrinebot on GitHub (Oct 13, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user waldo2188: For exemple : $query = $em->createQuery("SELECT \* FROM address WHERE :aValue IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)"); $query->getQuery()->getSQL(); Doctrine throw that error : Doctrine\ORM\Query\QueryException: [Semantical Error] line 0, col xxx near ':aValue': Error: ':aValue' is not defined. But in SQL this type of request is posible.
admin added the Bug label 2026-01-22 13:25:41 +01:00
admin closed this issue 2026-01-22 13:25:43 +01:00
Author
Owner

@doctrinebot commented on GitHub (Dec 4, 2011):

Comment created by @guilhermeblanco:

Fixed in trunk: 0380d5ae58

@doctrinebot commented on GitHub (Dec 4, 2011): Comment created by @guilhermeblanco: Fixed in trunk: https://github.com/doctrine/doctrine2/commit/0380d5ae580dcbefd63051028fc1ab78599fda6c
Author
Owner

@doctrinebot commented on GitHub (Dec 4, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 4, 2011): 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#1775