From 6da2a8631295383a22ac143be749d325b1b4a65a Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Mon, 15 Jul 2019 16:07:41 +0200 Subject: [PATCH] Importer: iComm used wrong datatype --- process/ImporterMappingFunctions_lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/ImporterMappingFunctions_lib/process.js b/process/ImporterMappingFunctions_lib/process.js index 5500aa69c9..f1e01b6faf 100644 --- a/process/ImporterMappingFunctions_lib/process.js +++ b/process/ImporterMappingFunctions_lib/process.js @@ -289,7 +289,7 @@ function iComm(pObject) { var sql = "select " + this.getColumnCase("communicationid") + " from " + this.getTableCase("communication") +" where " + this.getColumnCase("contact_id") + " = ? and " + this.getColumnCase("medium_id") + " = ? and " + this.getColumnCase("standard") + " = ? and " + this.getColumnCase("addr") + " = ?" - var id = db.cell([sql, [[contact, SQLTYPES.CHAR], [medium, SQLTYPES.INTEGER], + var id = db.cell([sql, [[contact, SQLTYPES.CHAR], [medium, SQLTYPES.CHAR], //TODO: define types dynamically and not hardcoded [standard, SQLTYPES.SMALLINT], [address, SQLTYPES.VARCHAR]]], this.Config.AliasTo); if (id == "" || id == null) { var columns = [this.getColumnCase("communicationid"), this.getColumnCase("addr"), -- GitLab