mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-25 18:32:23 +08:00
accomodate for the precedence of IS before 9.5, closes #150
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user