Actions
Bug #65789
closedExtbase: Wrong SQL statement when using Offset and no Limit
Status:
Closed
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
Start date:
2015-03-17
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
On Location Sprint
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
Actions