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:
@@ -145,6 +145,10 @@ public class SQLBinaryOpExpr extends SQLExprImpl implements Serializable {
|
||||
return true;
|
||||
}
|
||||
|
||||
public SQLBinaryOpExpr clone() {
|
||||
return new SQLBinaryOpExpr(left, operator, right, dbType);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return SQLUtils.toSQLString(this, getDbType());
|
||||
}
|
||||
|
||||
@@ -82,4 +82,8 @@ public class SQLIntegerExpr extends SQLNumericLiteralExpr implements SQLValuable
|
||||
public Object getValue() {
|
||||
return this.number;
|
||||
}
|
||||
|
||||
public SQLIntegerExpr clone() {
|
||||
return new SQLIntegerExpr(this.number);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,4 +104,7 @@ public class SQLVariantRefExpr extends SQLExprImpl {
|
||||
this.global = global;
|
||||
}
|
||||
|
||||
public SQLVariantRefExpr clone() {
|
||||
return new SQLVariantRefExpr(name, global);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user