mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-2018: [GH-439] Parser returns string instead of Literal expression #2540
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?
Originally created by @doctrinebot on GitHub (Sep 7, 2012).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
This issue is created automatically through a Github pull request on behalf of stefanklug:
Url: https://github.com/doctrine/doctrine2/pull/439
Message:
Hi,
I have this patch lying here for some time now, and would like to propose it for the main development line.
The Problem is, that Parser::StringPrimary() returns a raw string instead of a Literal object of type String. This behaviour requires additional logic when adding custom DQL functions to doctrine.
The problem is, that this change can be considered a breaking change, for everyone relying on the current (inconsistent) behaviour.
One example to illustrate the Problem. Lets say we implement our custom MyToUpper function:
This implementation works for MyToUpper(user.name) but crashes for MyToUpper('someConstant')
@doctrinebot commented on GitHub (Sep 7, 2012):
Comment created by @beberlei:
A related Github Pull-Request [GH-439] was closed
https://github.com/doctrine/doctrine2/pull/439
@doctrinebot commented on GitHub (Sep 17, 2012):
Issue was closed with resolution "Invalid"
@doctrinebot commented on GitHub (Dec 6, 2013):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-439] was closed:
https://github.com/doctrine/dbal/pull/439