@fxjs/sql-query
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -172,3 +172,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
if (typeof whereConditions[i] == "string") { | ||
if (typeof whereConditions[i] === "string") { | ||
/** | ||
@@ -199,3 +199,3 @@ * deal with input like this: | ||
table: null, | ||
wheres: whereConditions[i] | ||
wheres: Object.assign({}, whereConditions[i]) | ||
}; | ||
@@ -202,0 +202,0 @@ } |
@@ -65,3 +65,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const normalizedKey = getComparisonKey(Dialect, where.table, k); | ||
let non_conj_where_conditem_value = transformSqlComparatorLiteralObject(where_conditem_value, normalizedKey, where.wheres) || where_conditem_value; | ||
let non_conj_where_conditem_value = transformSqlComparatorLiteralObject(where_conditem_value) || where_conditem_value; | ||
if (isSqlComparatorPayload(non_conj_where_conditem_value)) { | ||
@@ -241,3 +241,3 @@ op = non_conj_where_conditem_value.sql_comparator(); | ||
} | ||
function transformSqlComparatorLiteralObject(non_special_kv, payload_k, payload) { | ||
function transformSqlComparatorLiteralObject(non_special_kv) { | ||
if (typeof non_special_kv !== 'object') | ||
@@ -268,5 +268,3 @@ return false; | ||
const result = fn.apply(null, apply_args); | ||
payload[payload_k] = result; | ||
return result; | ||
return false; | ||
} | ||
@@ -273,0 +271,0 @@ function isConjunctionWhereConditionInput(k, where_conditem_value) { |
{ | ||
"name": "@fxjs/sql-query", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"private": false, | ||
@@ -44,3 +44,3 @@ "description": "", | ||
}, | ||
"gitHead": "d5cd53b827bde7a6f5f58d4c9da13981667dad32" | ||
"gitHead": "41f550dc30bda962c60bfc1b05428c3a7f819b5f" | ||
} |
98396
2508