Use public accessor in PK::Auto::Pg
Daniel Westermann-Clark [Sat, 14 Jan 2006 16:46:59 +0000 (16:46 +0000)]
lib/DBIx/Class/PK/Auto/Pg.pm

index 611a6e1..2cd2c41 100644 (file)
@@ -22,7 +22,7 @@ sub get_autoinc_seq {
     return $self->{_autoinc_seq} = $self->sequence;
   }
   
-  my @pri = keys %{ $self->_primaries };
+  my @pri = $self->primary_columns;
   my $dbh = $self->storage->dbh;
   while (my $col = shift @pri) {
     my $info = $dbh->column_info(undef,undef,$self->table,$col)->fetchrow_arrayref;