Skip to content

Commit cb8d1e9

Browse files
Merge pull request balderdashy#56 from huafu/patch-1
Fixing the IS NOT NULL condition
2 parents 8391990 + 50b380e commit cb8d1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ var sql = {
149149
else if (key === '>' || key === 'greaterThan') return attrStr + '>' + valueStr;
150150
else if (key === '>=' || key === 'greaterThanOrEqual') return attrStr + '>=' + valueStr;
151151
else if (key === '!' || key === 'not') {
152-
if (value === null) return attrStr + 'IS NOT NULL';
152+
if (value === null) return attrStr + ' IS NOT NULL';
153153
else return attrStr + '<>' + valueStr;
154154
}
155155
else if (key === 'like') return attrStr + ' LIKE \'' + nakedButClean + '\'';

0 commit comments

Comments
 (0)