From: ivan Date: Sat, 1 Jul 2006 11:26:07 +0000 (+0000) Subject: another Pg 8.1 fix? noticed by Damon Vincent X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=1425dfd9510ea54977895afce6ed95330315880d;p=freeside.git another Pg 8.1 fix? noticed by Damon Vincent --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 3b3791155..5f1597380 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -757,7 +757,7 @@ sub insert { #my $i_sql = "SELECT $primary_key FROM $table WHERE oid = ?"; my $default = $self->dbdef_table->column($primary_key)->default; - unless ( $default =~ /^nextval\('"?([\w\.]+)"?'/i ) { + unless ( $default =~ /^nextval\(\(?'"?([\w\.]+)"?'/i ) { dbh->rollback if $FS::UID::AutoCommit; return "can't parse $table.$primary_key default value". " for sequence name: $default";