mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix deprecation warnings in internal SQLQuery usage
This commit is contained in:
parent
935eabc1f9
commit
298017c6d1
@ -999,8 +999,8 @@ class SQLQuery {
|
||||
if($column == null) {
|
||||
if($this->groupby) {
|
||||
$countQuery = new SQLQuery();
|
||||
$countQuery->select("count(*)");
|
||||
$countQuery->from = array('(' . $clone->sql() . ') all_distinct');
|
||||
$countQuery->setSelect("count(*)");
|
||||
$countQuery->setFrom('(' . $clone->sql() . ') all_distinct');
|
||||
|
||||
return $countQuery->execute()->value();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user