aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/iciql/QueryCondition.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/QueryCondition.java b/src/main/java/com/iciql/QueryCondition.java
index fce66af..56de976 100644
--- a/src/main/java/com/iciql/QueryCondition.java
+++ b/src/main/java/com/iciql/QueryCondition.java
@@ -60,7 +60,11 @@ public class QueryCondition<T, A> {
}
public QueryWhere<T> is(A y) {
- query.addConditionToken(new Condition<A>(x, y, CompareType.EQUAL));
+ if (y == null) {
+ query.addConditionToken(new Condition<A>(x, CompareType.IS_NULL));
+ } else {
+ query.addConditionToken(new Condition<A>(x, y, CompareType.EQUAL));
+ }
return new QueryWhere<T>(query);
}