mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
16f79a6dd8
commit
746b2f2f0a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user