[BUGFIX] Introduce exception for using offset without limit
In Typo3DbBackend::createQueryCommandParametersFromStatementParts, if an offset is defined, but no limit is, an LogicException is thrown. SQL does not provide possibility to set offset without limit. To retrieve all rows from a certain offset up to the end of the result set, you can use some large number for the limit. See: http://dev.mysql.com/doc/refman/5.7/en/select.html Resolves: #65789 Releases: master, 7.6 Change-Id: Icf4db2fbe8dfac21e5da2e32fe5dada38ffd3a77 Reviewed-on: https://review.typo3.org/48461 Reviewed-by:Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Susanne Moog <typo3@susannemoog.de> Tested-by:
Susanne Moog <typo3@susannemoog.de> Reviewed-by:
Andreas Fernandez <typo3@scripting-base.de> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Joerg Boesche <typo3@joergboesche.de> Tested-by:
Joerg Boesche <typo3@joergboesche.de> Reviewed-by:
Jan Helke <typo3@helke.de> Tested-by:
Jan Helke <typo3@helke.de>
Showing
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php 7 additions, 0 deletions...se/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
- typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php 31 additions, 0 deletions...s/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php
Please register or sign in to comment