diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js index 01e8064e4db77546fa9851d5a42075fb61c24240..cb7770f42edf0e0b8caa97aa97d55dd34f3abe63 100644 --- a/process/Sql_lib/process.js +++ b/process/Sql_lib/process.js @@ -687,16 +687,20 @@ SqlCondition.equalsNot = function(pField, pValue, pAlternativeCond, pAlias) { return SqlCondition.begin(pAlias).andPrepare(pField, pValue, "# <> ?").build(pAlternativeCond); } -function NewSelect(pFields, pAlias) +function newSelect(pFields, pAlias) { return new SqlBuilder(pAlias).select(pFields); } -function NewWhere(pFieldOrCond, pValue, pCond, pFieldType, pAlias) +function newWhere(pFieldOrCond, pValue, pCond, pFieldType, pAlias) { return new SqlBuilder(pAlias).where(pFieldOrCond, pValue, pCond, pFieldType); } +function newWhereIfSet(pFieldOrCond, pValue, pCond, pFieldType, pAlias) +{ + return new SqlBuilder(pAlias).whereIfSet(pFieldOrCond, pValue, pCond, pFieldType); +} /** * Object for building sqls. The main purpose of this is to make it easy to use prepared statements. * You should ALWAYS use prepared statemnts for Security and maybe also for performance reasons.