zeanium-node
Advanced tools
Comparing version 0.6.6 to 0.6.7
{ | ||
"name": "zeanium-node", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"description": "Zeanium for Node.js, simple http server and custome your business.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -197,2 +197,3 @@ /** | ||
var _values = [], | ||
_value = null, | ||
_return = ''; | ||
@@ -241,7 +242,20 @@ switch (zn.type(where)){ | ||
case 'object': | ||
var _ors = []; | ||
zn.each(where, function (value, key){ | ||
_values.push(key + ' = ' + __formatSqlValue(value)); | ||
_value = __formatSqlValue(value); | ||
if(key.indexOf('&') == -1 && key.indexOf('|') == -1){ | ||
_values.push(key + ' = ' + _value); | ||
}else { | ||
if(key.indexOf('&') != -1){ | ||
_values.push(key.replace('&', '') + _value); | ||
}else if (key.indexOf('|') != -1) { | ||
_ors.push(key.replace('|', '') + _value); | ||
} | ||
} | ||
}); | ||
_return = _values.join(' and '); | ||
if(_ors.length){ | ||
_return = _return + ' or ' + _ors.join(' or '); | ||
} | ||
break; | ||
@@ -248,0 +262,0 @@ } |
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
250041
5933