From: miker Date: Mon, 23 Jul 2007 18:53:50 +0000 (+0000) Subject: Patch from Dan Scott to quiet the whining of PG 8.1+ on non-standard string escapes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f3ec7dd44e968184b88550d097d094863cb00ab2;p=Evergreen.git Patch from Dan Scott to quiet the whining of PG 8.1+ on non-standard string escapes git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7574 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index d58ca86c2a..577b9dd913 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -231,7 +231,7 @@ INSERT INTO config.identification_type ( name ) VALUES ( 'Other' ); CREATE TABLE config.rule_circ_duration ( id SERIAL PRIMARY KEY, - name TEXT NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ), + name TEXT NOT NULL UNIQUE CHECK ( name ~ E'^\\w+$' ), extended INTERVAL NOT NULL, normal INTERVAL NOT NULL, shrt INTERVAL NOT NULL, @@ -277,7 +277,7 @@ INSERT INTO config.rule_circ_duration VALUES (DEFAULT, 'default', '21 days', '14 CREATE TABLE config.rule_max_fine ( id SERIAL PRIMARY KEY, - name TEXT NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ), + name TEXT NOT NULL UNIQUE CHECK ( name ~ E'^\\w+$' ), amount NUMERIC(6,2) NOT NULL ); COMMENT ON TABLE config.rule_max_fine IS $$ @@ -317,7 +317,7 @@ INSERT INTO config.rule_max_fine VALUES (DEFAULT, 'overdue_equip_max', 100.00); CREATE TABLE config.rule_recuring_fine ( id SERIAL PRIMARY KEY, - name TEXT NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ), + name TEXT NOT NULL UNIQUE CHECK ( name ~ E'^\\w+$' ), high NUMERIC(6,2) NOT NULL, normal NUMERIC(6,2) NOT NULL, low NUMERIC(6,2) NOT NULL, @@ -357,7 +357,7 @@ INSERT INTO config.rule_recuring_fine VALUES (DEFAULT, '50_cent_per_day', 0.50, CREATE TABLE config.rule_age_hold_protect ( id SERIAL PRIMARY KEY, - name TEXT NOT NULL UNIQUE CHECK ( name ~ '^\\w+$' ), + name TEXT NOT NULL UNIQUE CHECK ( name ~ E'^\\w+$' ), age INTERVAL NOT NULL, prox INT NOT NULL );