Skip to content

Commit 260c78f

Browse files
committed
Support for query options in INSERT
1 parent 03e5d76 commit 260c78f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MysqliDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public function insert($tableName, $insertData)
396396
if ($this->isSubQuery)
397397
return;
398398

399-
$this->_query = "INSERT INTO " .self::$prefix . $tableName;
399+
$this->_query = "INSERT " . implode(' ', $this->_queryOptions) ." INTO " .self::$prefix . $tableName;
400400
$stmt = $this->_buildQuery(null, $insertData);
401401
$stmt->execute();
402402
$this->_stmtError = $stmt->error;

0 commit comments

Comments
 (0)