mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #448] [MERGED] Fixed Parser problem for SELECT (((3))) as .... #8213
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/448
Author: @stefanklug
Created: 9/18/2012
Status: ✅ Merged
Merged: 11/3/2012
Merged by: @guilhermeblanco
Base:
master← Head:master-parserFix📝 Commits (4)
d344407added test case6ccf7a7fixed Parser which incorrectly treated ((( as function1e1f34fcleanup ScalarExpressionbf54c22removed unneded variable📊 Changes
2 files changed (+48 additions, -37 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/Parser.php(+43 -37)📝
tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php(+5 -0)📄 Description
Hi this is the old PR https://github.com/doctrine/doctrine2/pull/438 ported to master.
I had to modify more than I expected to get it to work properly.
I had to apply some modifications to Parser::ScalarExpression and would like to discuss the desired coding style. After my modifications Parser::ScalarExpression looks a bit more like Parser::SelectExpression, but I don't know your preferred style.
I think there is some more cleanup we could apply to ScalarExpression, but I'd like to get some feedback first.
Stefan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.