Commit a6f64e65 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #301049 by Damien Tournoud: fix InsertQuery.

parent 1dd9ab77
......@@ -408,11 +408,12 @@ public function execute() {
foreach ($this->insertValues as $insert_values) {
$last_insert_id = $this->connection->query($sql, $insert_values, $this->queryOptions);
// Re-initialize the values array so that we can re-use this query.
$this->insertValues = array();
// Transaction commits here where $transaction looses scope.
return $last_insert_id;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment