Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a6f64e65
Commit
a6f64e65
authored
Jan 17, 2009
by
Dries Buytaert
Browse files
- Patch
#301049
by Damien Tournoud: fix InsertQuery.
parent
1dd9ab77
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/database/query.inc
View file @
a6f64e65
...
...
@@ -408,11 +408,12 @@ public function execute() {
foreach
(
$this
->
insertValues
as
$insert_values
)
{
$last_insert_id
=
$this
->
connection
->
query
(
$sql
,
$insert_values
,
$this
->
queryOptions
);
}
$transaction
->
commit
();
// 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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment