(no commit message)
authorChristian Weiske <cweiske@cweiske.de>
Thu, 16 Sep 2021 09:14:58 +0000 (11:14 +0200)
committerwww-cweiske <www-cweiske@ahso3>
Thu, 16 Sep 2021 09:14:58 +0000 (11:14 +0200)
typo3v7-extbase-statement.php [new file with mode: 0644]

diff --git a/typo3v7-extbase-statement.php b/typo3v7-extbase-statement.php
new file mode 100644 (file)
index 0000000..ed87b80
--- /dev/null
@@ -0,0 +1,11 @@
+$query = $this->createQuery();                                   \r
+$query = $query->statement(\r
+    //manually creating PreparedStatement should not be necessary\r
+    //anymore in typo3 v8+\r
+    new \TYPO3\CMS\Core\Database\PreparedStatement(              \r
+        'SELECT * FROM tablename WHERE col = ?',\r
+        'tablename'\r
+    ),\r
+    ['myvalue']\r
+);\r
+$result = $query->execute();
\ No newline at end of file