accomodate for the precedence of IS before 9.5, closes #150

This commit is contained in:
Vamshi Surabhi
2018-07-17 22:26:47 +05:30
committed by GitHub
parent 5efa366b49
commit 679310b008

View File

@@ -201,7 +201,7 @@ objRelP2Setup qt (RelDef rn ru _) = do
FROM hdb_catalog.hdb_foreign_key_constraint
WHERE table_schema = $1
AND table_name = $2
AND column_mapping ->> $3 IS NOT NULL
AND (column_mapping ->> $3) IS NOT NULL
|] (sn, tn, cn) False
processRes (consn, refsn, reftn, mapping) =
case M.toList (Q.getAltJ mapping) of
@@ -295,7 +295,7 @@ arrRelP2Setup qt (RelDef rn ru _) = do
FROM hdb_catalog.hdb_foreign_key_constraint
WHERE table_schema = $1
AND table_name = $2
AND column_mapping -> $3 IS NOT NULL
AND (column_mapping -> $3) IS NOT NULL
AND ref_table_table_schema = $4
AND ref_table = $5
|] (refsn, reftn, refcn, sn, tn) False