[BUGFIX] Extbase: Pass parameter to real raw queries 63/52863/2
authorDaniel Goerz <dlg@lightwerk.com>
Fri, 19 May 2017 12:02:56 +0000 (14:02 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 29 May 2017 17:23:22 +0000 (19:23 +0200)
Resolves: #81272
Releases: master, 8.7
Change-Id: Iac3d486697b8c52fbace185ab1a55c514847db07
Reviewed-on: https://review.typo3.org/52863
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php

index 583f6b0..37df075 100644 (file)
@@ -385,7 +385,7 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface
             // in the future
             try {
                 $connection = $this->connectionPool->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME);
-                $statement = $connection->executeQuery($realStatement);
+                $statement = $connection->executeQuery($realStatement, $parameters);
             } catch (DBALException $e) {
                 throw new SqlErrorException($e->getPrevious()->getMessage(), 1472064775);
             }