Bug #65789
closedExtbase: Wrong SQL statement when using Offset and no Limit
100%
Description
When building a query with OFFSET but no LIMIT, this line in
TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend
protected function createQueryCommandParametersFromStatementParts(array $statementParts):
321: 'limit' => ($statementParts['offset'] ? $statementParts['offset'] . ', ' : '') 322: . ($statementParts['limit'] ? $statementParts['limit'] : '')
produces an SQL Error, because the SQL ends with a comma: ...DESC LIMIT 3,
It should only add a comma, when there is a OFFSET and a LIMIT
Updated by B. Kausch about 9 years ago
- Target version set to 6.2.16
Serious Bug. Already exists in 6.2 ...
Updated by Riccardo De Contardi over 8 years ago
- Category set to Extbase
- Target version changed from 6.2.16 to Candidate for patchlevel
Updated by Ian SEBBAGH over 8 years ago
- Assignee set to Ian SEBBAGH
- Sprint Focus set to On Location Sprint
Updated by Gerrit Code Review over 8 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48461
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48461
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48461
Updated by Gerrit Code Review over 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48461
Updated by Gerrit Code Review over 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48461
Updated by Gerrit Code Review over 8 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48461
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48473
Updated by Ian SEBBAGH over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 01a04f123e9fb3e28370030a166dc5ccee932132.
Updated by Gerrit Code Review over 8 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48473
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48475
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48473
Updated by Ian SEBBAGH over 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset dc8a9da23f22248dd7f15dadc1ec959d5b6410fe.