Fix deprecation warnings in internal SQLQuery usage

This commit is contained in:
Cam Spiers 2014-08-28 14:26:17 +12:00
parent 935eabc1f9
commit 298017c6d1

View File

@ -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();