DDC-2223: unable to use scalar function when a scalar expression is expected #2796

Open
opened 2026-01-22 14:03:55 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Jan 4, 2013).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user alexises:

the DQL Parser don't parse properly functions when a ScalarExpression is needed like of all case functions.

In fact first function token is interpreted as a T_IDENTIFIER and enter on line 1663 of Doctrine\ORM\Query\Parser class. in search of math operator, when not found this case considere that the token is a row element with no considération of the functions procession treated after.

fix of this bug consist to enclose the line 1672 by a if (!$this->_isFunction()).

Originally created by @doctrinebot on GitHub (Jan 4, 2013). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user alexises: the DQL Parser don't parse properly functions when a ScalarExpression is needed like of all case functions. In fact first function token is interpreted as a T_IDENTIFIER and enter on line 1663 of Doctrine\ORM\Query\Parser class. in search of math operator, when not found this case considere that the token is a row element with no considération of the functions procession treated after. fix of this bug consist to enclose the line 1672 by a if (!$this->_isFunction()).
admin added the Bug label 2026-01-22 14:03:55 +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#2796