Bug #93576 » Typo3DbBackend-getObjectCountByQuery.patch
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php (date 1614150223981) | ||
---|---|---|
$queryBuilder->resetQueryPart('groupBy')
|
||
->selectLiteral(sprintf('COUNT(DISTINCT %s.%s)', $tableName, $fieldName));
|
||
} else {
|
||
$queryBuilder->count('*');
|
||
$fullSql = $queryBuilder->getSQL();
|
||
$queryBuilder
|
||
->resetQueryParts()
|
||
->selectLiteral('count(*)')
|
||
->getConcreteQueryBuilder()->from("({$fullSql})", 'temporary')
|
||
;
|
||
}
|
||
try {
|