1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00
doctrine2/tests/Doctrine/Tests
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
..
DbalTypes Remove sql conversion from where clauses and update statements 2011-11-21 15:08:36 +01:00
Mocks fix StatementMock bindParam parameters 2012-10-23 00:09:38 +02:00
Models Merge pull request #414 from cordoval/DDC-1872 2012-10-06 01:35:47 -07:00
ORM Fix for invalid 'double-ON' SQL generation with entity inheritance type JOINED. 2012-11-05 01:19:25 -08:00
DbalFunctionalTestCase.php Added a bunch of functional tests for the public read, write and transactional public DBAL API, passing all the current drivers 2010-05-15 19:54:56 +02:00
DbalTestCase.php Enabling namespaces. Final restructurings. 2009-01-22 19:38:10 +00:00
DoctrineTestCase.php [2.0] DDC-84 - Add Mysql Platform unittests for incremental changes of the metadata for the schematool update function. Fixed some quirks in the Unit-Test suite alongside, Fixed changes of length in SchemaTool update. 2009-10-31 22:23:36 +00:00
OrmFunctionalTestCase.php [DDC-1939] Add test for persistent collection delete with composite key 2012-07-29 09:27:08 +02:00
OrmPerformanceTestCase.php [2.0] Adding insert performance tests. 2009-05-19 16:11:08 +00:00
OrmTestCase.php Updating to reflect latest Doctrine Common changes 2012-07-08 16:30:35 +02:00
TestInit.php Switch testsuite to run with phpunit.ini.dist from main folder, not using AllTests approach. Fixed global state problem in tests that was caused by EventManager being reused. Significantly enhanced error message about cascade persist 2011-06-18 22:47:21 +02:00
TestUtil.php Bump DBAL version and make TestUtil more lenient 2011-10-25 22:54:20 +02:00