Bug #81272
closedParameters in real raw extbase queries do not get replaced
100%
Description
Sometimes it might be necessary to use real raw queries with parameter replacement in the context of extbase. Since the rewrite of the TYPO3DbBackend
to support doctrine this last ressort is not working because we forgot to pass the parameter to the query execution. This functionality should not be used anyway but in case it is needed it should at least work.
Something like this should be enough to test it.
$sqlParamList = [];
$sqlQuery = 'Select * from <table> where <propert> = ?';
$sqlParamList[] = 123;
$query = $this->createQuery();
$query->statement($sqlQuery, $sqlParamList);
return $query->execute();
Updated by Daniel Goerz over 7 years ago
- Related to Bug #67375: Typo3DbBackend in current extbase 7.2.0 doesnt replace the placeholder "?" with boundVariables in extbase 6.2 before added
Updated by Gerrit Code Review over 7 years ago
- Status changed from New 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/52863
Updated by Daniel Goerz over 7 years ago
- Related to Task #77624: Use DBAL abstraction for Extbase raw queries added
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52962
Updated by Anonymous over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6c088910d12a9589b53a45c655696c750cc83bc3.