From 99cf1a4cfe9b69800129db37a49023befc440bbe Mon Sep 17 00:00:00 2001 From: pine3ree Date: Tue, 17 Oct 2023 21:47:55 +0200 Subject: [PATCH] Use SQL strings instead of Sql constants Signed-off-by: pine3ree --- src/Sql/Driver/Oci.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sql/Driver/Oci.php b/src/Sql/Driver/Oci.php index 94b06f15..90c43c72 100644 --- a/src/Sql/Driver/Oci.php +++ b/src/Sql/Driver/Oci.php @@ -392,14 +392,14 @@ public function getInsertSQL(Insert $insert, Params $params): string $sqls = []; - $sqls[] = Sql::INSERT . " " . Sql::ALL; + $sqls[] = "INSERT ALL"; $table = $this->quoteIdentifier($insert->table); $columns = $this->call($insert, 'getColumnsSQL', $this); - $into = Sql::INTO . " {$table} {$columns} " . Sql::VALUES ; foreach ($insert->values as $values) { - $sqls[] = " {$into} " . $this->call($insert, 'getRowValuesSQL', $values, $this, $params); + $values = $this->call($insert, 'getRowValuesSQL', $values, $this, $params); + $sqls[] = " INTO {$table} {$columns} VALUES {$values}"; } $sqls[] = "SELECT 1 FROM dual;";