[BUGFIX] Extbase: Do not mangle SQL query when constraint value is empty 60/51360/2
authorMarkus Klein <markus.klein@typo3.org>
Thu, 19 Jan 2017 12:54:30 +0000 (13:54 +0100)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Thu, 19 Jan 2017 13:38:23 +0000 (14:38 +0100)
commit56c20415636f6a28bd91e5fb4846ab81052578af
tree5314d4e24779749d09854cdf5ffe15b95f0eee6c
parent7adb722a100cc682b11d7baf7e8427cfae63643e
[BUGFIX] Extbase: Do not mangle SQL query when constraint value is empty

The query parser now throws an exception if the given value for an
IN or CONTAINS expression is invalid, instead of silently converting
it to a "1<>1" condition.
This helps developers when searching for broken queries and prevents
running queries with invalid/useless constraints.

Resolves: #79388
Releases: master
Change-Id: I9868325810ec11c72c994a0106a9e27141d95f3a
Reviewed-on: https://review.typo3.org/51360
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Tested-by: Johannes Kasberger <johannes.kasberger@reelworx.at>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php