From: ivan Date: Sat, 1 Jul 2006 11:26:06 +0000 (+0000) Subject: another Pg 8.1 fix? noticed by Damon Vincent X-Git-Tag: BEFORE_RT_3_4_5^2~81 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=b63800b2aaca886ae42c0f61f83ae2e2f0b4c44f;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 fa0d2d87e..9a99aebe7 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -763,7 +763,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";