Comparing version 0.0.18 to 0.0.19
@@ -117,12 +117,7 @@ var Where = require("./Where"); | ||
whereExists: function (table, table_link, link, conditions) { | ||
var where = [{ | ||
sql.where.push({ | ||
t: (sql.from.length ? sql.from[sql.from.length - 1].a : null), | ||
w: conditions, | ||
e: { t: table, tl: get_table_alias(table_link), l: link } | ||
}]; | ||
if (sql.where.length) { | ||
sql.where[sql.where.length - 1] = sql.where[sql.where.length - 1].concat(where); | ||
} else { | ||
sql.where.push(where); | ||
} | ||
}); | ||
return this; | ||
@@ -129,0 +124,0 @@ }, |
@@ -32,3 +32,3 @@ exports.build = function (Dialect, where) { | ||
"WHERE " + Dialect.escapeId(where.e.l[0]) + " = " + Dialect.escapeId(where.e.tl, where.e.l[1]) + " " + | ||
"AND " + buildOrGroup(Dialect, [{ t: null, w: where.w }]) + | ||
"AND " + buildOrGroup(Dialect, { t: null, w: where.w }) + | ||
")" | ||
@@ -35,0 +35,0 @@ ]; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"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
32673
1139