Fixed the Pagination missing when using SELECT DISTINCT (#18493)
Signed-off-by: Sachin Bahukhandi <sachinb0013@gmail.com>
This commit is contained in:
parent
daa252ba42
commit
73efd6e03e
@ -701,7 +701,7 @@ class Sql
|
||||
$statement->limit = false;
|
||||
}
|
||||
|
||||
if (! $statementInfo->isGroup && count($statement->expr) === 1) {
|
||||
if (! $statementInfo->isGroup && ! $statementInfo->distinct && count($statement->expr) === 1) {
|
||||
$statement->expr[0] = new Expression();
|
||||
$statement->expr[0]->expr = '1';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user