sqlquerybuilder
Advanced tools
Comparing version 0.0.78 to 0.0.79
@@ -147,2 +147,3 @@ var _ = require('lodash'), | ||
if (opIndex !== -1) { | ||
var operator = '='; | ||
if (subFilter.charAt(0) === '(') { | ||
@@ -154,6 +155,14 @@ whereString += '('; | ||
} | ||
if (subFilter.charAt(0) === '!') { | ||
operator = '!='; | ||
subFilter = subFilter.substr(1); | ||
opIndex = subFilter.indexOf(".Equals"); | ||
shouldAppendParenth = true; | ||
} | ||
reference = subFilter.substr(0, opIndex); | ||
whereString += self._whereJoin(reference) + | ||
" = '" + | ||
" " + operator + " '" + | ||
//" = '" + | ||
sqlescape(subFilter.substr(opIndex + 9, subFilter.lastIndexOf("\"") - (opIndex + 9))) + | ||
@@ -160,0 +169,0 @@ "'"; |
{ | ||
"name": "sqlquerybuilder", | ||
"version": "0.0.78", | ||
"version": "0.0.79", | ||
"description": "Highly opinionated Sql Server Query Writer, mostly for internal use.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index", |
243823
4889