Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit fd9d3af

Browse files
jbardnzmsonowal
authored andcommitted
Added not null logic
1 parent 501babf commit fd9d3af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Engines/Modes/Mode.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ protected function buildWheres(Builder $builder)
4242
$this->whereParams[$field] = $value;
4343
$queryString .= "$field $operator ? AND ";
4444
} else {
45-
$queryString .= "$field IS NULL AND ";
45+
46+
if($operator === '!='){
47+
$queryString .= "$field IS NOT NULL AND ";
48+
}else{
49+
$queryString .= "$field IS NULL AND ";
50+
}
4651
}
4752
}
4853

0 commit comments

Comments
 (0)