[open-ils-commits] r7574 - branches/rel_1_2/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jul 23 14:54:33 EDT 2007
Author: miker
Date: 2007-07-23 14:53:50 -0400 (Mon, 23 Jul 2007)
New Revision: 7574
Modified:
branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
Patch from Dan Scott to quiet the whining of PG 8.1+ on non-standard string escapes
Modified: branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql 2007-07-23 18:49:12 UTC (rev 7573)
+++ branches/rel_1_2/Open-ILS/src/sql/Pg/002.schema.config.sql 2007-07-23 18:53:50 UTC (rev 7574)
@@ -231,7 +231,7 @@
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 @@
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 @@
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 @@
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
);
More information about the open-ils-commits
mailing list