1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00
doctrine2/tests/Doctrine/Tests/ORM
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
..
Criteria Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
Entity Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
Functional Merge pull request #434 from bamarni/filter-objects 2012-11-02 17:52:23 -07:00
Hydration test multiple entity results 2012-04-15 15:40:43 -03:00
Id Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
Mapping Fix DDC-2069 2012-10-20 00:28:38 -03:00
Performance Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
Persisters tests for quoted columns metadata 2012-06-18 14:42:56 -03:00
Proxy [DDC-1771] Abstract classes cannot be proxies and should be skipped in complete generation. 2012-04-07 10:30:09 +02:00
Query Fix for invalid 'double-ON' SQL generation with entity inheritance type JOINED. 2012-11-05 01:19:25 -08:00
Tools Fixed the testsuite 2012-11-03 17:07:56 +01:00
CommitOrderCalculatorTest.php Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
ConfigurationTest.php Merge pull request #434 from bamarni/filter-objects 2012-11-02 17:52:23 -07:00
EntityManagerTest.php Allow passing any callable instead of only closures 2012-06-16 13:20:34 +02:00
PersistentCollectionTest.php Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
QueryBuilderTest.php Add test for QueryBuilderTest::addCriteria with undefined limits 2012-08-20 20:31:57 +04:00
UnitOfWorkTest.php Added testcase for DDC-2086 2012-10-19 09:15:07 +02:00