diff options
author | glynastill | 2015-08-13 16:23:43 +0000 |
---|---|---|
committer | glyn | 2016-06-07 11:13:40 +0000 |
commit | dcb6455e00ca030241bdd35a260ee23ca9e615b8 (patch) | |
tree | 943262384ebbf7edeb3469365f5897e532cbfe36 | |
parent | 3e5f5f7fbc5b56695e316ed42bec65e7d15715d5 (diff) |
Fix same schema to treat pg_constraint.confmatchtype = 'u' = 's'
This relates to a change in the character representing a simple match
on a foreign key stored in the confmatchtype field changing from 'u'
to 's' between postgresql 9.2 and 9.3. Ref:
http://www.postgresql.org/docs/9.2/static/catalog-pg-constraint.html
http://www.postgresql.org/docs/9.3/static/catalog-pg-constraint.html
-rwxr-xr-x | check_postgres.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index c726d10a5..e29501558 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1119,7 +1119,7 @@ JOIN pg_namespace n ON (n.oid = p.pronamespace)}, SQL => q{ SELECT c.*, c.oid, n.nspname||'.'||c1.relname||'.'||c.conname AS name, quote_ident(c.conname) AS safename, n.nspname AS schema, r.relname AS tname, - pg_get_constraintdef(c.oid) AS constraintdef + pg_get_constraintdef(c.oid) AS constraintdef, translate(c.confmatchtype,'u','s') AS confmatchtype_compat FROM pg_constraint c JOIN pg_class c1 ON (c1.oid = c.conrelid) JOIN pg_namespace n ON (n.oid = c.connamespace) @@ -6756,7 +6756,8 @@ sub check_same_schema { indexprs,indcheckxmin,reltablespace, indkey', '' ], [trigger => 'tgqual,tgconstraint', '' ], - [constraint => 'conbin,conindid,conkey,confkey', '' ], + [constraint => 'conbin,conindid,conkey,confkey + confmatchtype', '' ], [column => 'atttypid,attnum,attbyval,attndims', '' ], ); |