It just calls _returning, but allows subclasses to override UPDATE …
RETURNING independently from INSERT … RETURNING
}
if ($options->{returning}) {
- my ($returning_sql, @returning_bind) = $self->_returning ($options);
+ my ($returning_sql, @returning_bind) = $self->_update_returning ($options);
$sql .= $returning_sql;
push @all_bind, @returning_bind;
}
return wantarray ? ($sql, @all_bind) : $sql;
}
+sub _update_returning { shift->_returning(@_) }