mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #801] [MERGED] Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform #8727
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/801
Author: @flip111
Created: 9/26/2013
Status: ✅ Merged
Merged: 10/1/2013
Merged by: @guilhermeblanco
Base:
master← Head:patch-4📝 Commits (3)
76fda95Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform72ae7f5Changed GroupBy alias to real column name for all platforms and adjusted failing test accordingly. Has fallback in cases where real column name is not possible (example: Doctrine\Tests\ORM\Query\SelectSqlGenerationTest::testGroupBySupportsIdentificationVariable)228a501Made the code prettier :)📊 Changes
2 files changed (+11 additions, -2 deletions)
View changed files
📝
lib/Doctrine/ORM/Query/SqlWalker.php(+10 -0)📝
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php(+1 -2)📄 Description
Without this patch a query would like like:
Using the column alias in the GROUP BY clause. However this is not allowed on SQL Server. References:
The correct query should be:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.