1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/lib/Doctrine/ORM/Query
Gordon Stratton 9e916a2893 Fix for invalid 'double-ON' SQL generation with entity inheritance type JOINED.
In SqlWalker::walkJoin(), SqlWalker::walkRangeVariableDeclaration() can be
called which may produce an 'ON' clause if the entity inheritance type is
JOINED. As walkJoin() may then produce another ON clause, this results in
invalid SQL (e.g. '... ON foo = bar ON (baz = quux) ...' when the inheritance
type is JOINED.

This adds a test and a fix for the problem, by checking for an inheritance type
of JOINED in walkJoin() and using AND instead of ON in the appropriate place.

It seems like this part of the code is begging to be refactored. This is my
first foray into Doctrine internals and can't see a way to do this without
stomping all over the rest of the code, but this section seems ripe for cleanup
by somebody who is familiar.
2012-11-05 01:19:25 -08:00
..
AST fixed use statements 2012-10-12 13:53:20 +02:00
Exec fixed use statements 2012-10-12 13:53:20 +02:00
Expr LGPL => MIT 2012-05-26 14:37:00 +02:00
Filter fixed use statements 2012-10-12 13:53:20 +02:00
Expr.php Added NOT LIKE expression 2012-10-25 12:58:19 +02:00
FilterCollection.php Merge pull request #434 from bamarni/filter-objects 2012-11-02 17:52:23 -07:00
Lexer.php start work 2012-09-29 16:18:56 -03:00
Parameter.php [DDC-1961] Fixed parameter type support in Parameter 2012-07-31 21:01:21 +02:00
ParameterTypeInferer.php add bool detection when inferring type 2012-10-10 11:20:41 +02:00
Parser.php removed unneded variable 2012-10-08 14:01:04 +02:00
ParserResult.php remove svn markers 2012-06-19 15:27:41 -03:00
Printer.php remove svn markers 2012-06-19 15:27:41 -03:00
QueryException.php [DDC-2052] Add SqlWalker::setQueryComponent() to allow modification of the query component in a custom output walker 2012-10-06 11:16:16 +02:00
QueryExpressionVisitor.php Change version for QueryExpressionVisitor 2012-08-29 16:00:02 +04:00
ResultSetMapping.php collect new object parameters 2012-09-29 16:18:57 -03:00
ResultSetMappingBuilder.php [DDC-2055] Fix CS 2012-10-04 20:18:10 +02:00
SqlWalker.php Fix for invalid 'double-ON' SQL generation with entity inheritance type JOINED. 2012-11-05 01:19:25 -08:00
TreeWalker.php remove svn markers 2012-06-19 15:27:41 -03:00
TreeWalkerAdapter.php remove svn markers 2012-06-19 15:27:41 -03:00
TreeWalkerChain.php remove svn markers 2012-06-19 15:27:41 -03:00