1 package DBIx::Class::PK::Auto::DB2;
6 use base qw/DBIx::Class/;
8 __PACKAGE__->load_components(qw/PK::Auto/);
14 my $dbh = $self->result_source->storage->dbh;
15 my $sth = $dbh->prepare_cached("VALUES(IDENTITY_VAL_LOCAL())");
18 my @res = $sth->fetchrow_array();
20 return @res ? $res[0] : undef;