From 1425dfd9510ea54977895afce6ed95330315880d Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 1 Jul 2006 11:26:07 +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 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"; -- 2.20.1