* [misc] replace COUNT(*) with COUNT(1) in sql.
This commit is contained in:
+1
-1
@@ -966,7 +966,7 @@ class aiModel extends model
|
||||
*/
|
||||
public function countLatestMiniPrograms()
|
||||
{
|
||||
return (int)$this->dao->select('COUNT(*) as count')
|
||||
return (int)$this->dao->select('COUNT(1) AS count')
|
||||
->from(TABLE_AI_MINIPROGRAM)
|
||||
->where('deleted')->eq('0')
|
||||
->andWhere('published')->eq('1')
|
||||
|
||||
Reference in New Issue
Block a user