[BUGFIX] get count consistent with execute for self written statements 14/55214/2
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:41:09 +0000 (12:41 +0100)
commitbf8f174e113b322719c29021108c72466cb7411b
treee538c9250a24c670fe17b50bdcf259ec85d607a3
parentbf4dfe801ffcac5686a8b2e0143e58c589203917
[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/55214
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php