mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #606] [CLOSED] Don't add empty Expr to another one #8436
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/606
Author: @jean-gui
Created: 3/8/2013
Status: ❌ Closed
Base:
master← Head:empty-expr-add📝 Commits (1)
2a621abDon't add empty expression to another one📊 Changes
2 files changed (+15 additions, -1 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/Expr/Base.php(+1 -1)📝
tests/Doctrine/Tests/ORM/Query/ExprTest.php(+14 -0)📄 Description
Doctrine should not allow to add an empty Expr to another one. Current code allows that, which can lead to wrong DQL.
Example 1:
will output:
instead of:
Example 2:
will output:
instead of nothing.
IRC log of the discusion on #doctrine:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.