sub _rebless {
my $self = shift;
- my $dbtype = eval { @{$self->_dbh->selectrow_arrayref(qq{sp_server_info \@attribute_id=1})}[2] };
+ my $dbtype = eval { @{$self->dbh->selectrow_arrayref(qq{sp_server_info \@attribute_id=1})}[2] };
unless ( $@ ) {
$dbtype =~ s/\W/_/gi;
my $subclass = "DBIx::Class::Storage::DBI::Sybase::${dbtype}";
}
}
+sub _dbh_last_insert_id {
+ my $self = shift;
+ my $sth = $self->_dbh->prepare_cached('select @@identity');
+ ($self->_dbh->selectrow_array($sth))[0];
+}
+
1;
=head1 NAME