From 746b2f2f0acaba20a88563936c6d058c7c1b97bb Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Apr 2010 03:31:06 +0000 Subject: [PATCH] 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 --- core/model/Aggregate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/Aggregate.php b/core/model/Aggregate.php index f191d645a..b85c6b56e 100644 --- a/core/model/Aggregate.php +++ b/core/model/Aggregate.php @@ -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; }