1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/lib/Doctrine/ORM/Query
flip111 76fda9562c Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform
Without this patch a query would like like:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY sclr0
```
Using the column alias in the GROUP BY clause. However this is not allowed on SQL Server. References:
1. http://stackoverflow.com/a/3841804
2. http://technet.microsoft.com/en-us/library/ms189499.aspx (Logical Processing Order of the SELECT statement)

The correct query should be:
```
SELECT c0_.Country AS sclr0
FROM Continent c0_ WITH (NOLOCK)
WHERE c0_.Country = 38
GROUP BY c0_.Country
```
2013-09-26 14:11:56 +02:00
..
AST Fixed DDC-2235. 2013-08-16 00:07:06 -04:00
Exec Fix DDC-2090 2013-03-17 16:59:33 -03:00
Expr Swapped places indexBy and condition in accordance with EBNF 2013-05-09 03:30:48 +04:00
Filter Fixed typo in SQLFilter (use statement ClassMetadata) 2013-04-23 20:46:19 +03:00
Expr.php Fixed typos 2013-03-11 00:08:58 +00:00
FilterCollection.php Synchronized support of FilterCollection with ODM by adding missing method. 2013-07-29 21:24:08 -04:00
Lexer.php Allow query parameters starting with an underscore 2013-07-04 10:12:36 +02:00
Parameter.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
ParameterTypeInferer.php Fixed typos 2013-03-11 00:08:58 +00:00
Parser.php DDC-1858 Added missing support to ResultVariable in LikeExpression. 2013-08-18 23:52:32 -04:00
ParserResult.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
Printer.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
QueryException.php Fixed typos 2013-03-11 00:08:58 +00:00
QueryExpressionVisitor.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
ResultSetMapping.php Fix DDC-2494 2013-06-12 10:30:51 -04:00
ResultSetMappingBuilder.php [DDC-2660] Fix error with NativeSQL, ResultSetMappingBuilder and Associations as Primary Key. 2013-09-08 14:38:59 +02:00
SqlWalker.php Update SqlWalker.php fixed wrong GROUP BY clause on SQL Server platform 2013-09-26 14:11:56 +02:00
TreeWalker.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00
TreeWalkerAdapter.php Fixed typos 2013-03-11 00:08:58 +00:00
TreeWalkerChain.php Fixed documentation for Doctrine\ORM\Query 2012-12-13 16:36:14 +00:00