Исправление SqlCriteria::count()
This commit is contained in:
@ -234,7 +234,7 @@ abstract class SqlModel extends Model
|
||||
'SELECT (' .
|
||||
(($sql_expression) ? $sql_expression : ('SELECT * FROM ' . $this->identify($this->table())))
|
||||
. (($where) ? (' WHERE ' . $where) : '')
|
||||
. (($group_by) ? (' GROUP BY ' . $group_by) : '') . ') AS count',
|
||||
. (($group_by) ? (' GROUP BY ' . $group_by) : '') . ' LIMIT 1) AS count',
|
||||
$sql_expression_params,
|
||||
$cache_key
|
||||
);
|
||||
|
Reference in New Issue
Block a user