try to fix PK::Auto::Pg for sequences with quoted names
David Kamholz [Wed, 1 Mar 2006 04:42:50 +0000 (04:42 +0000)]
lib/DBIx/Class/PK/Auto/Pg.pm

index ad12dfa..166a772 100644 (file)
@@ -28,9 +28,10 @@ sub get_autoinc_seq {
   while (my $col = shift @pri) {
     my $info = $dbh->column_info(undef,$schema,$table,$col)->fetchrow_arrayref;
     if (defined $info->[12] and $info->[12] =~ 
-      /^nextval\('"?([^"']+)"?'::(?:text|regclass)\)/)
+      /^nextval\('([^']+)'::(?:text|regclass)\)/)
     {
       $self->{_autoinc_seq} = $1;
+      #$self->{_autoinc_seq} =~ s/"//g;
       last;
     } 
   }