[+TASK] Extbase (Persistence): counting query results does not work with limit constr...
authorBastian Waidelich <bastian@typo3.org>
Wed, 24 Nov 2010 19:51:33 +0000 (19:51 +0000)
committerBastian Waidelich <bastian@typo3.org>
Wed, 24 Nov 2010 19:51:33 +0000 (19:51 +0000)
commit90fa0879f49fc9fb73cf51f573ef64f1945617d0
treebe2915acb536fa32078021745f6a66c2d9ca8206
parent8a4a2a81246e5e8d2a735e8f3c4a332ab6794ee8
[+TASK] Extbase (Persistence): counting query results does not work with limit constraints

Tx_Extbase_Persistence_Storage_Typo3DbBackend::getObjectCountByQuery() replaces the SELECT part of a query by COUNT(*) before executing a statement.
This did not work as expected in some cases, e.g. the LIMIT constraint was ignored by the count query.

This resolves: #10956
typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php