Comparing version 0.0.19 to 0.0.20
@@ -106,2 +106,19 @@ exports.build = function (Dialect, where) { | ||
break; | ||
case "sql": | ||
var sql = where.w[k].sql.replace("?:column", buildComparisonKey(Dialect, where.t, k)); | ||
sql = sql.replace(/\?:(id|value)/g, function (m) { | ||
if (where.w[k].replace.length === 0) { | ||
return ''; | ||
} | ||
if (m == "?:id") { | ||
return Dialect.escapeId(where.w[k].replace.shift()); | ||
} | ||
// ?:value | ||
return Dialect.escapeVal(where.w[k].replace.shift()); | ||
}); | ||
query.push(sql); | ||
break; | ||
} | ||
@@ -108,0 +125,0 @@ continue; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"license": "MIT", | ||
@@ -12,0 +12,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33124
1153