Updated version and POD
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / PK / Auto / Pg.pm
index eb6856c..52185e5 100644 (file)
@@ -18,7 +18,9 @@ sub get_autoinc_seq {
   my $self=shift;
   
   # return the user-defined sequence if known
-  return $self->sequence if ($self->sequence);
+  if ($self->sequence) {
+    return $self->{_autoinc_seq} = $self->sequence;
+  }
   
   my $dbh= $self->storage->dbh;
     my $sth    = $dbh->column_info( undef, undef, $self->_table_name, '%');
@@ -34,7 +36,7 @@ sub get_autoinc_seq {
 
 =head1 NAME 
 
-DBIx::Class::PK::Auto::Pg- Automatic Primary Key class for Postgresql
+DBIx::Class::PK::Auto::Pg - Automatic Primary Key class for Postgresql
 
 =head1 SYNOPSIS