[BUGFIX] get count consistent with execute for self written statements 44/54844/4
authorSebastian Hofer <sebastian.hofer@marit.ag>
Tue, 28 Nov 2017 21:31:34 +0000 (22:31 +0100)
committerBenni Mack <benni@typo3.org>
Wed, 27 Dec 2017 11:28:37 +0000 (12:28 +0100)
commit3ed515fbb316e81e3ffe09a8ec20e4da568a0df6
treeff7efa1c787d313e9d388e20089621b4a562a4d8
parent542a48760f48e088e00f055910318ee23404d356
[BUGFIX] get count consistent with execute for self written statements

Fix wrong result for self written sql statements executing count
on the query result.

To get this consistent, check for statement also in
getObjectCountByQuery and run getObjectDataByQuery
for self written statements. After that count the
rows.

Wrapping the statement in a subselect will
may be break doLanguageAndWorkspaceOverlay
in getObjectDataByQuery.

This is just to be consistent. Normally it does not
make sense to call the count method on a self written
statement.

Releases: master, 8.7
Resolves: #82910
Change-Id: I8bddb1b20d062d9f46939c16885f1eb73df1e5f4
Reviewed-on: https://review.typo3.org/54844
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php