Comparing version 0.1.1 to 0.1.2
@@ -15,7 +15,8 @@ var Where = require("./Where"); | ||
var sql = { | ||
from : [], | ||
where : [], | ||
order : [], | ||
group_by : null, | ||
found_rows : false | ||
from : [], | ||
where : [], | ||
order : [], | ||
group_by : null, | ||
found_rows : false, | ||
where_exists : false | ||
}; | ||
@@ -150,2 +151,3 @@ var get_table_alias = function (table) { | ||
}); | ||
sql.where_exists = true; | ||
return this; | ||
@@ -286,3 +288,3 @@ }, | ||
} | ||
if (sql.from.length == 1) { | ||
if (sql.from.length == 1 && !sql.where_exists) { | ||
query.push(Dialect.escapeId(sql.from[i].t)); | ||
@@ -289,0 +291,0 @@ } else { |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"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
39629
1358