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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98776 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-02-11 04:34:55 +00:00 committed by Sam Minnee
parent 6b556ef90d
commit 79010479da

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;
}