You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" WHERE pkn.oid = pkc.relnamespace AND pkc.oid = pka.attrelid AND pka.attnum = con.confkey[pos.n] AND con.confrelid = pkc.oid "+
2999
+
" AND fkn.oid = fkc.relnamespace AND fkc.oid = fka.attrelid AND fka.attnum = con.conkey[pos.n] AND con.conrelid = fkc.oid "+
3000
+
" AND con.contype = 'f' AND con.oid = dep.objid AND pkic.oid = dep.refobjid AND pkic.relkind = 'i' AND dep.classid = 'pg_constraint'::regclass::oid AND dep.refclassid = 'pg_class'::regclass::oid ";
3001
+
if (primarySchema != null && !"".equals(primarySchema)) {
3002
+
sql += " AND pkn.nspname = '"+escapeQuotes(primarySchema)+"' ";
3003
+
}
3004
+
if (foreignSchema != null && !"".equals(foreignSchema)) {
3005
+
sql += " AND fkn.nspname = '"+escapeQuotes(foreignSchema)+"' ";
3006
+
}
3007
+
if (primaryTable != null && !"".equals(primaryTable)) {
3008
+
sql += " AND pkc.relname = '"+escapeQuotes(primaryTable)+"' ";
3009
+
}
3010
+
if (foreignTable != null && !"".equals(foreignTable)) {
3011
+
sql += " AND fkc.relname = '"+escapeQuotes(foreignTable)+"' ";
0 commit comments