From 6bf49852f41406bc4a0ede1b0b5b903153ff1ff5 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 27 Aug 2009 12:07:37 -0400 Subject: Handle newlines in constraint definitions. --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index bb4f41aef..4a8591ea1 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4707,7 +4707,7 @@ sub check_same_schema { current_database()::information_schema.sql_identifier AS constraint_catalog, x.cstrschema::information_schema.sql_identifier AS constraint_schema, x.cstrname::information_schema.sql_identifier AS constraint_name, - constrdef + REGEXP_REPLACE(constrdef, '\n', ' \\n ','g') FROM (( SELECT DISTINCT nr.nspname, r.relname, r.relowner, a.attname, nc.nspname, c.conname, pg_catalog.pg_get_constraintdef(c.oid, true) FROM pg_namespace nr, pg_class r, pg_attribute a, pg_depend d, pg_namespace nc, pg_constraint c -- cgit v1.2.3