Issue Bug Closed

#81272Parameters in real raw extbase queries do not get replaced

Daniel Goerz 05/19/17, 14:00 updated 10/02/18, 10:59

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();

Reviews 2