mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -289,4 +289,12 @@ public class SQLBinaryOpExpr extends SQLExprImpl implements Serializable {
|
||||
|
||||
return new SQLBinaryOpExpr(a, SQLBinaryOperator.BooleanAnd, b);
|
||||
}
|
||||
|
||||
public static SQLBinaryOpExpr isNotNull(SQLExpr expr) {
|
||||
return new SQLBinaryOpExpr(expr, SQLBinaryOperator.IsNot, new SQLNullExpr());
|
||||
}
|
||||
|
||||
public static SQLBinaryOpExpr isNull(SQLExpr expr) {
|
||||
return new SQLBinaryOpExpr(expr, SQLBinaryOperator.Is, new SQLNullExpr());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user