BUGFIX #5053 Aggregate::query() should not set an orderby clause, otherwise databases will complain (from r98776)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102795 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-14 03:31:06 +00:00
parent 16f79a6dd8
commit 746b2f2f0a

View File

@ -70,6 +70,7 @@ class Aggregate extends ViewableData {
$singleton = singleton($this->type);
$query = $singleton->buildSQL($this->filter);
$query->select = array($attr);
$query->orderby = null;
$singleton->extend('augmentSQL', $query);
return $query;
}