Actions
Bug #81272
closedParameters in real raw extbase queries do not get replaced
Start date:
2017-05-19
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
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();
Actions