sqlquerybuilder
Advanced tools
Comparing version 0.0.30 to 0.0.31
@@ -190,8 +190,11 @@ module.exports = function where(self) { | ||
var dropAlias2 = self._selectProps[self._selectAliases.indexOf(pars[0])]; | ||
console.log('dropAlias', dropAlias2); | ||
whereString += "(" + (dropAlias2 ? dropAlias2 : (self._sqlObject.fromAlias + "." + pars[0])); | ||
whereString += pars[1].toUpperCase() === "NULL" ? " IS " : " = "; | ||
if(isNaN(pars[1] && pars[1].toUpperCase() !== 'NULL')){ | ||
whereString += "'"; | ||
whereString += pars[1] + "'" + ")"; | ||
} else { | ||
whereString += pars[1] + | ||
")"; | ||
console.log('werheString', whereString); | ||
")"; | ||
} | ||
continue; | ||
@@ -198,0 +201,0 @@ } |
{ | ||
"name": "sqlquerybuilder", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
184455
3904