From: David Kamholz Date: Wed, 1 Mar 2006 04:44:48 +0000 (+0000) Subject: port fix for ejh's pg bug to branch X-Git-Tag: v0.06000~60^2~69 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=644b02f71a25d1d396cd6824c1497dc222c8412c;p=dbsrgits%2FDBIx-Class.git port fix for ejh's pg bug to branch --- diff --git a/lib/DBIx/Class/Storage/DBI/Pg.pm b/lib/DBIx/Class/Storage/DBI/Pg.pm index 7fb6b8c..a1bdc6d 100644 --- a/lib/DBIx/Class/Storage/DBI/Pg.pm +++ b/lib/DBIx/Class/Storage/DBI/Pg.pm @@ -23,9 +23,9 @@ 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)\)/) { - return $1; + return $1; # may need to strip quotes -- see if this works } } }