PLAT#41508 syntax error in ins.getmjblist_sql

svn path=/Website/trunk/; revision=38105
This commit is contained in:
2018-06-07 09:39:44 +00:00
parent e3adc76ef2
commit b92d8ffcf6

View File

@@ -2703,7 +2703,7 @@ ins = {checkAutLevel:
? " AND el.ins_alg_locatie_key = " + loc_key
: ""))
+ (bld_key_arr && bld_key_arr.length // elders in dit bestand wordt scherper gefilterd, deze is voor de performance
? " AND el.ins_alg_locatie_key = (SELECT alg_locatie_key FROM alg_gebouw WHERE alg_gebouw_key IN (" + bld_key_arr.join(",") + "))"
? " AND el.ins_alg_locatie_key IN (SELECT alg_locatie_key FROM alg_gebouw WHERE alg_gebouw_key IN (" + bld_key_arr.join(",") + "))"
: (bld_key > 0
? " AND el.ins_alg_locatie_key = (SELECT alg_locatie_key FROM alg_gebouw WHERE alg_gebouw_key = " + bld_key + ")"
: ""))