From b63800b2aaca886ae42c0f61f83ae2e2f0b4c44f Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 1 Jul 2006 11:26:06 +0000 Subject: [PATCH] another Pg 8.1 fix? noticed by Damon Vincent --- FS/FS/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.11.0