projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Sybase autopk, and a test, no limit support yet
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Storage
/
DBI
/
Sybase.pm
diff --git
a/lib/DBIx/Class/Storage/DBI/Sybase.pm
b/lib/DBIx/Class/Storage/DBI/Sybase.pm
index
670e55c
..
1a63bc8
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/Sybase.pm
+++ b/
lib/DBIx/Class/Storage/DBI/Sybase.pm
@@
-19,6
+19,12
@@
sub _rebless {
}
}
+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