From 3363b41f1a8e8721f82ecabe92a1f81aa97f0812 Mon Sep 17 00:00:00 2001 From: Johannes Hoermann <j.hoermann@adito.de> Date: Thu, 7 Nov 2019 16:39:53 +0100 Subject: [PATCH] propper message if SqlBuilder.begin() is used as it's deprecated --- process/Sql_lib/process.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js index a90cc00642..fad01349a3 100644 --- a/process/Sql_lib/process.js +++ b/process/Sql_lib/process.js @@ -946,8 +946,9 @@ SqlBuilder._ERROR_UPDATE_VALUES_INVALID = function () */ SqlBuilder.begin = function () { - logging.log("Warning: using .where with a SqlCondition as pFieldOrCond is deprecated. The SqlCondition will be removed in version >= 2020.x\n" - + "For SqlBuilder usage see the documentation-property of the Sql_lib."); + logging.log("Warning: using .begin is deprecated as it's now possible to write \"new SqlBuilder().select(...).from(...)....\"\n" + + "You can now use \"newSelect(...)\", \"newWhere(...)\", \"newWhereIfSet(...)\" or \"new SqlBuilder()\" to create a new SqlBuilder instance.\n" + + + "For further SqlBuilder usage see the documentation-property of the Sql_lib."); return new SqlBuilder(); } -- GitLab