return wantarray ? ($sql, @bind) : $sql;
}
-# Used by DBIx::Class::SQLMaker->insert
+# So that subclasses can override INSERT ... RETURNING separately from
+# UPDATE and DELETE (e.g. DBIx::Class::SQLMaker::Oracle does this)
sub _insert_returning { shift->_returning(@_) }
sub _returning {
return wantarray ? ($sql, @all_bind) : $sql;
}
+# So that subclasses can override UPDATE ... RETURNING separately from
+# INSERT and DELETE
sub _update_returning { shift->_returning(@_) }
return wantarray ? ($sql, @bind) : $sql;
}
+# So that subclasses can override DELETE ... RETURNING separately from
+# INSERT and UPDATE
sub _delete_returning { shift->_returning(@_) }