diff --git a/entity/BulkMail_entity/recordcontainers/db/orderClauseProcess.js b/entity/BulkMail_entity/recordcontainers/db/orderClauseProcess.js index 3c74afcc36fb6b205272bc381bf0a2b025c606c0..837c0929f906f2a682ea55e48e15ac44d7003d70 100644 --- a/entity/BulkMail_entity/recordcontainers/db/orderClauseProcess.js +++ b/entity/BulkMail_entity/recordcontainers/db/orderClauseProcess.js @@ -3,6 +3,6 @@ import("system.db"); import("Sql_lib"); ref = {}; -ref[SqlMaskingUtils.prototype.isNull("BULKMAIL.DATE_EDIT", "BULKMAIL.DATE_NEW")] = db.DESCENDING; +ref[new SqlMaskingUtils().isNull("BULKMAIL.DATE_EDIT", "BULKMAIL.DATE_NEW")] = db.DESCENDING; result.object(ref); \ No newline at end of file diff --git a/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/datelastedit.value/expression.js b/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/datelastedit.value/expression.js index e8375af86734ceb2389e24ae3b10720d4f60100b..5ea86d6ad7ce14b9b5456f254a67b6de7d5e0bda 100644 --- a/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/datelastedit.value/expression.js +++ b/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/datelastedit.value/expression.js @@ -1,6 +1,6 @@ import("system.result"); import("Sql_lib"); -var cond = SqlMaskingUtils.prototype.isNull("BULKMAIL.DATE_EDIT", "BULKMAIL.DATE_NEW"); +var cond = new SqlMaskingUtils().isNull("BULKMAIL.DATE_EDIT", "BULKMAIL.DATE_NEW"); result.string(cond.toString()); \ No newline at end of file diff --git a/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/userlastedit.value/expression.js b/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/userlastedit.value/expression.js index 2df0709d0bf778d8b5fd119872866d8fa64896d3..d9c759971c59690e61c616fd4d36788c3df5fbe0 100644 --- a/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/userlastedit.value/expression.js +++ b/entity/BulkMail_entity/recordcontainers/db/recordfieldmappings/userlastedit.value/expression.js @@ -1,6 +1,6 @@ import("system.result"); import("Sql_lib"); -var cond = SqlMaskingUtils.prototype.isNull("BULKMAIL.USER_EDIT", "BULKMAIL.USER_NEW"); +var cond = new SqlMaskingUtils().isNull("BULKMAIL.USER_EDIT", "BULKMAIL.USER_NEW"); result.string(cond.toString()); \ No newline at end of file diff --git a/entity/Weblink_entity/recordcontainers/db/orderClauseProcess.js b/entity/Weblink_entity/recordcontainers/db/orderClauseProcess.js index f3aa364a806fc472dbf0dce26576d5cbabe82b3d..2e069f777aa1a112c9cdb37baa7bb3d72746e986 100644 --- a/entity/Weblink_entity/recordcontainers/db/orderClauseProcess.js +++ b/entity/Weblink_entity/recordcontainers/db/orderClauseProcess.js @@ -3,6 +3,6 @@ import("system.result"); import("Sql_lib"); var ret = {}; -ret[SqlMaskingUtils.prototype.isNull("WEBLINK.DATE_EDIT", "WEBLINK.DATE_NEW")] = db.DESCENDING; +ret[new SqlMaskingUtils().isNull("WEBLINK.DATE_EDIT", "WEBLINK.DATE_NEW")] = db.DESCENDING; result.object(ret); \ No newline at end of file diff --git a/entity/Weblink_entity/recordcontainers/db/recordfieldmappings/datelastchange.value/expression.js b/entity/Weblink_entity/recordcontainers/db/recordfieldmappings/datelastchange.value/expression.js index 02a47dbbaf0dcf516217ec4f65a2a0d310f8c1e3..ac99863a915cabdb31357539d6bcdf17a4eec004 100644 --- a/entity/Weblink_entity/recordcontainers/db/recordfieldmappings/datelastchange.value/expression.js +++ b/entity/Weblink_entity/recordcontainers/db/recordfieldmappings/datelastchange.value/expression.js @@ -1,6 +1,6 @@ import("system.result"); import("Sql_lib"); -var cond = SqlMaskingUtils.prototype.isNull("WEBLINK.DATE_EDIT", "WEBLINK.DATE_NEW"); +var cond = new SqlMaskingUtils().isNull("WEBLINK.DATE_EDIT", "WEBLINK.DATE_NEW"); result.string(cond); \ No newline at end of file diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js index ecc8f1ed818c8617735dd702a025269dfcfd8fdf..c77721eaeca586680c883ebf2b320862ad7ad99a 100644 --- a/process/Sql_lib/process.js +++ b/process/Sql_lib/process.js @@ -3404,8 +3404,9 @@ SqlMaskingUtils.prototype.isNull = function (pField, pReplacement) case db.DBTYPE_DERBY10: case db.DBTYPE_MYSQL4: case db.DBTYPE_MARIADB10: - default: return "coalesce(" + pField + ", " + pReplacement + ")"; + default: + throw new Error(translate.withArguments("${SQL_LIB_UNSUPPORTED_DBTYPE} function: %0", ["SqlMaskingUtils.prototype.isNull"])); } }