Skip to content

Commit 4e092bc

Browse files
committed
Merge pull request dresende#2 from Gamaroff/patch-1
Check for undefined value
2 parents 04a441a + ff9500b commit 4e092bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Where.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function buildOrGroup(Dialect, where) {
3535
continue;
3636
}
3737
for (var k in where[i].w) {
38-
if (where[i].w[k] === null) {
38+
if (!where[i].w[k]) {
3939
query.push(
4040
buildComparisonKey(Dialect, where[i].t, k) +
4141
" IS NULL"

0 commit comments

Comments
 (0)