DDC-1108: Parameters name of a single letter don't work #1386

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

Originally created by @doctrinebot on GitHub (Apr 9, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user stof:

"SELECT c FROM MyBundle\AppBundle\Entity\Cities c WHERE c.nume LIKE :q" throws an Exception in Doctrine\ORM\Query\AST\InputParameter line 46 because strlen return 1.
I don't know the DQL parser deeply but it seems that the value passed to this class does not contain the colon. In this case the exception does not make sense here.

Originally created by @doctrinebot on GitHub (Apr 9, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user stof: "SELECT c FROM MyBundle\AppBundle\Entity\Cities c WHERE c.nume LIKE :q" throws an Exception in Doctrine\ORM\Query\AST\InputParameter line 46 because strlen return 1. I don't know the DQL parser deeply but it seems that the value passed to this class does not contain the colon. In this case the exception does not make sense here.
admin added the Bug label 2026-01-22 13:12:44 +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#1386