[BUGFIX] preparseQuery wrongly computes cache hash of a query 56/28656/7
authorXavier Perseguers <xavier@typo3.org>
Sun, 23 Mar 2014 08:54:36 +0000 (09:54 +0100)
committerXavier Perseguers <xavier@typo3.org>
Sun, 23 Mar 2014 17:08:53 +0000 (18:08 +0100)
commited50510a899f54da6479b3dfde17c449bba1c28f
treef7149284af261deb4cdb51cb632755e17b5a7c1d
parent4a4c2365bd37f5c6e7495c8fca8c42fc378a35ee
[BUGFIX] preparseQuery wrongly computes cache hash of a query

preparseQuery only takes query's parameters to compute its hash but
not the operators used. As such, those two queries result into the
same cache hash:

SELECT * FROM fe_groups WHERE uid = :uid

SELECT * FROM fe_groups WHERE uid IN (:uid)

Fixes: #57173
Releases: 6.2
Change-Id: I6a65ba0be81da73f55c2e6a73f508728567064c3
Reviewed-on: https://review.typo3.org/28656
Reviewed-by: Felix Oertel
Tested-by: Felix Oertel
Reviewed-by: Markus Klein
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php
typo3/sysext/extbase/Tests/Functional/Persistence/QueryParserTest.php [new file with mode: 0644]