projects
/
scpubgit/Q-Branch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Keep calling _insert_returning for INSERT … RETURNING
[scpubgit/Q-Branch.git]
/
lib
/
SQL
/
Abstract.pm
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
32ad7b3
..
3adfc01
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-219,7
+219,7
@@
sub insert {
$sql = join " ", $self->_sqlcase('insert into'), $table, $sql;
if ($options->{returning}) {
- my ($s, @b) = $self->_returning ($options);
+ my ($s, @b) = $self->_insert_returning ($options);
$sql .= $s;
push @bind, @b;
}