提交 c055e4a2 编写于 作者: S Serge Rider

#1335 Logical operator evaluate fix

上级 45a2c92e
......@@ -29,13 +29,15 @@ public enum DBCLogicalOperator {
EQUALS("=", 1) {
@Override
public boolean evaluate(Object srcValue, Object[] arguments) {
return CommonUtils.equalObjects(srcValue, arguments[0]);
final Object cmpValue = arguments == null ? null : arguments[0];
return CommonUtils.equalObjects(srcValue, cmpValue);
}
},
NOT_EQUALS("<>", 1) {
@Override
public boolean evaluate(Object srcValue, Object[] arguments) {
return !CommonUtils.equalObjects(srcValue, arguments[0]);
final Object cmpValue = arguments == null ? null : arguments[0];
return !CommonUtils.equalObjects(srcValue, cmpValue);
}
},
GREATER(">", 1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册