AUTHORS mass update; mst doesn't have to take credit for -everything- :)
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / PK / Auto / DB2.pm
index a9732d5..c7fed59 100644 (file)
@@ -1,4 +1,5 @@
-package DBIx::Class::PK::Auto::DB2;
+package # hide package from pause
+  DBIx::Class::PK::Auto::DB2;
 
 use strict;
 use warnings;
@@ -7,18 +8,22 @@ use base qw/DBIx::Class/;
 
 __PACKAGE__->load_components(qw/PK::Auto/);
 
-sub last_insert_id
-{
-    my ($self) = @_;
+1;
 
-    my $dbh = $self->result_source->storage->dbh;
-    my $sth = $dbh->prepare_cached("VALUES(IDENTITY_VAL_LOCAL())");
-    $sth->execute();
+=head1 NAME
 
-    my @res = $sth->fetchrow_array();
+DBIx::Class::PK::Auto::DB2 - (DEPRECATED) Automatic primary key class for DB2
 
-    return @res ? $res[0] : undef;
-                         
-}
+=head1 SYNOPSIS
 
-1;
+Just load PK::Auto instead; auto-inc is now handled by Storage.
+
+=head1 AUTHOR AND CONTRIBUTORS
+
+See L<AUTHOR|DBIx::Class/AUTHOR> and L<CONTRIBUTORS|DBIx::Class/CONTRIBUTORS> in DBIx::Class
+
+=head1 LICENSE
+
+You may distribute this code under the same terms as Perl itself.
+
+=cut