Project

General

Profile

Bug #93576 » Typo3DbBackend-getObjectCountByQuery.patch

example patch file for TYPO3 v8 - Michael Grundkötter, 2021-02-24 07:53

View differences:

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 {
    (1-1/1)