mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #717] Allow query parameters starting with an underscore #8605
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/717
State: closed
Merged: Yes
Using a query parameter of which the name starts with an underscore results in a QueryException. For example:
Results in:
This happens because of a bug in the Lexer, which recognizes
:_nameas two tokens (the:as the start of a input parameter,_nameas an identifier). The attached patch changes the regular expression for input parameters to allow identifiers starting with a letter or underscore.