From: Rafael Kitover Date: Wed, 15 Jul 2009 19:10:27 +0000 (+0000) Subject: rename _scope_identity to _identity for odbc/mssql X-Git-Tag: v0.08109~30^2~17 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=14c82fd49d8561d20f7d9ce1dda6572975dcf7ac;p=dbsrgits%2FDBIx-Class.git rename _scope_identity to _identity for odbc/mssql --- diff --git a/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm b/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm index 0a58c76..f263fb3 100644 --- a/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm +++ b/lib/DBIx/Class/Storage/DBI/ODBC/Microsoft_SQL_Server.pm @@ -8,7 +8,7 @@ use Carp::Clan qw/^DBIx::Class/; use List::Util(); __PACKAGE__->mk_group_accessors(simple => qw/ - _scope_identity _using_dynamic_cursors + _identity _using_dynamic_cursors /); =head1 NAME @@ -207,13 +207,13 @@ sub _execute { ($identity) = $self->_dbh->selectrow_array('select @@identity'); } - $self->_scope_identity($identity); + $self->_identity($identity); } return wantarray ? ($rv, $sth, @bind) : $rv; } -sub last_insert_id { shift->_scope_identity() } +sub last_insert_id { shift->_identity() } 1;