summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2006-07-01 11:26:06 +0000
committerivan <ivan>2006-07-01 11:26:06 +0000
commitb63800b2aaca886ae42c0f61f83ae2e2f0b4c44f (patch)
tree2baf2864bf4d695bdbaa17a1b0ace6e95fd3333d
parentc930d34504a46a50eb2438f12dc896efbb15b49d (diff)
another Pg 8.1 fix? noticed by Damon Vincent
-rw-r--r--FS/FS/Record.pm2
1 files changed, 1 insertions, 1 deletions
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";