Skip to content

Commit

Permalink
Use SQL strings instead of Sql constants
Browse files Browse the repository at this point in the history
Signed-off-by: pine3ree <[email protected]>
  • Loading branch information
pine3ree committed Oct 17, 2023
1 parent 13e0baf commit 99cf1a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sql/Driver/Oci.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;";
Expand Down

0 comments on commit 99cf1a4

Please sign in to comment.