Replace all wildcard columns with '1' in count-only subquery #1575

This commit is contained in:
Kijin Sung 2021-01-29 14:40:28 +09:00
parent 96eae68105
commit 957be16a25
4 changed files with 44 additions and 20 deletions

View file

@ -408,7 +408,7 @@ class DB
// Get the COUNT(*) query string and parameters.
try
{
$query_string = $query->getQueryString($this->_prefix, $args, [], true);
$query_string = $query->getQueryString($this->_prefix, $args, [], 1);
$query_params = $query->getQueryParams();
}
catch (Exceptions\QueryError $e)