silverstripe-framework/tests
stojg efa9ff9b08 API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before.
This bug will surface when using the ORM and adding an join to DataList
where a DataObject inherits another DataObject.

If you for example want to restrict the number of pages that only have a
related Staff object:

    $list = DataList::create('Page')
		->InnerJoin('Staff', '"Staff"."ID" = "Page"."StaffID");

This will create a SQL query where the INNER JOIN is before the
LEFT JOIN of Page and SiteTree in the resulting SQL string. In MySQL
and PostgreSQL this will create an invalid query.

This patch solves the problem by sorting the joins.
2012-12-11 11:04:29 +13:00
..
api FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
behat Support for chosen.js drop downs in behat steps 2012-11-16 15:32:17 +13:00
cache Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
control Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
core Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
dev Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
filesystem Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
forms Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
i18n BUG Fixed issue with Deprecation failing to extract the module from a stacktrace, especially on non-unix systems 2012-10-17 11:57:16 +13:00
injector FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
integration BUG Fixing regression in 26d70d6fca with formatted output in SS_HTMLValue 2012-10-16 11:59:30 +13:00
javascript MINOR Cleaning up code of Datagrid with related classes with more tests 2011-09-29 12:16:15 +13:00
model API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before. 2012-12-11 11:04:29 +13:00
oembed FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
parsers FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
phpcs NEW Amend Travis build to run a simple PHP_CodeSniffer test. 2012-09-30 17:28:46 +13:00
search FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
security Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
tasks Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
templates BUG Only include processed requirements at the top level. (Fixes #7847) 2012-11-04 17:54:09 +13:00
testing FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
travis Using $TRAVIS_BRANCH again, since its now available on travis-ci.org 2012-11-28 16:35:29 +01:00
view Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
Bare.yml MINOR: Added small fixture YML that just lets you log in, for bootstrapping browser automation tests. 2011-02-02 14:17:57 +13:00
bootstrap.php Revert "Make PHPUnit bootstrap add flush=1" 2012-08-14 19:00:57 +12:00
FakeController.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
MemoryLimitTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
PhpSyntaxTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00