[BUGFIX] Follow-up to Use TYPO3 8 DB API 89/51189/2
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 8 Jan 2017 05:11:01 +0000 (00:11 -0500)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 8 Jan 2017 05:13:44 +0000 (06:13 +0100)
Resolves: #79187
Change-Id: Ie81290907a3546c6911e4f8c928f198ceb001ab9
Reviewed-on: https://review.typo3.org/51189
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
class.ext_update.php

index 2247582..b17755c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2017-01-07  Stanislas Rolland  <typo3(arobas)sjbr.ca>\r
 \r
        * Cleanup extension configuration files\r
+       * Follow-up to #79187: Use TYPO3 8 DB API\r
 \r
 2017-01-06  Stanislas Rolland  <typo3(arobas)sjbr.ca>\r
 \r
index 7ddea7a..b8db3e5 100644 (file)
@@ -126,7 +126,7 @@ class ext_update
                                $queryBuilder
                                   ->update('tt_content')
                                   ->where(
-                                         $queryBuilder->expr()->eq('uid', (int)$row['uid'])
+                                         $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter((int)$row['uid'], \PDO::PARAM_INT))
                                   )
                                   ->set('CType', $update['CType'])
                                   ->set('list_type', $update['list_type'])
@@ -173,7 +173,7 @@ class ext_update
                                        $queryBuilder
                                           ->update('sys_template')
                                           ->where(
-                                                 $queryBuilder->expr()->eq('uid', (int)$row['uid'])
+                                                 $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter((int)$row['uid'], \PDO::PARAM_INT))
                                           )
                                           ->set('constants', $update['constants'])
                                           ->set('config', $update['config'])