[WIP][BUGFIX] Introduce exception for using offset without limit 73/48473/4
authorIan SEBBAGH <ianouf@gmail.com>
Mon, 6 Jun 2016 15:42:26 +0000 (17:42 +0200)
committerJan Helke <typo3@helke.de>
Tue, 7 Jun 2016 12:08:03 +0000 (14:08 +0200)
commit0bfa76449b4999c0c529eb7de8ac85cbd384430e
treefdc4bb622822337914236de3abb8ab46d5ee1216
parent09c753aefa80d54bf20f1ccf45ce40204dd66f51
[WIP][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/48473
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php