From: David Kamholz Date: Wed, 1 Mar 2006 04:42:50 +0000 (+0000) Subject: try to fix PK::Auto::Pg for sequences with quoted names X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=10f7b30b83b8cac25dff39d3c9564c21eab3bcf8;p=dbsrgits%2FDBIx-Class-Historic.git try to fix PK::Auto::Pg for sequences with quoted names --- diff --git a/lib/DBIx/Class/PK/Auto/Pg.pm b/lib/DBIx/Class/PK/Auto/Pg.pm index ad12dfa..166a772 100644 --- a/lib/DBIx/Class/PK/Auto/Pg.pm +++ b/lib/DBIx/Class/PK/Auto/Pg.pm @@ -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; } }