Fix incorrect handling of auto-generated COUNT(*) queries when there are GROUP BY or DISTINCT clauses

This commit is contained in:
Kijin Sung 2021-01-07 00:55:43 +09:00
parent c80a80f986
commit 3f766a937c
2 changed files with 30 additions and 15 deletions

View file

@ -437,6 +437,7 @@ class DB
// Compose the output object.
$output = new \BaseObject;
$output->add('_count', $query_string);
$output->total_count = $total_count;
$output->total_page = $total_page;
$output->page = $page;