ee-query-builder
Advanced tools
Comparing version 0.1.24 to 0.1.25
@@ -32,9 +32,14 @@ !function(){ | ||
, in: function(command, paramaters){ | ||
, in: function(command, paramaters) { | ||
var values = command.values; | ||
if (type.array(command.values) && command.values.length && type.function(command.values[0].isQuery)) values = values[0]; | ||
//if (command.values.length) { | ||
if (type.function(command.values.isQuery)) { | ||
return ' IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(command.values), paramaters).SQLString+')'; | ||
if (type.function(values.isQuery)) { | ||
return ' IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(values), paramaters).SQLString+')'; | ||
} | ||
else { | ||
return ' IN (' +command.values.map(function(value) { | ||
return ' IN (' +values.map(function(value) { | ||
return this._escape(value); | ||
@@ -48,7 +53,11 @@ }.bind(this)).join(', ') +')'; | ||
, notIn: function(command, paramaters) { | ||
if (type.function(command.values.isQuery)) { | ||
return ' NOT IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(command.values), paramaters).SQLString+')'; | ||
var values = command.values; | ||
if (type.array(command.values) && command.values.length && type.function(command.values[0].isQuery)) values = values[0]; | ||
if (type.function(values.isQuery)) { | ||
return ' NOT IN ('+this._queryBuilder._render('query', this._queryBuilder._prepareQueryFilter(values), paramaters).SQLString+')'; | ||
} | ||
else { | ||
return ' NOT IN (' +command.values.map(function(value){ | ||
return ' NOT IN (' +values.map(function(value){ | ||
return this._escape(value); | ||
@@ -55,0 +64,0 @@ }.bind(this)).join(', ') +')'; |
{ | ||
"name" : "ee-query-builder" | ||
, "description" : "query builder for ee-orm" | ||
, "version" : "0.1.24" | ||
, "version" : "0.1.25" | ||
, "homepage" : "https://github.com/eventEmitter/ee-query-builder" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
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
20173
468