mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved db2 sql parser, support db2 interval expr. for issue #2037
This commit is contained in:
@@ -248,7 +248,7 @@ public class SQLAggregateExpr extends SQLExprImpl implements Serializable, SQLRe
|
||||
}
|
||||
}
|
||||
|
||||
if (hash == FnvHash.Constants.WM_CONAT
|
||||
if (hash == FnvHash.Constants.WM_CONCAT
|
||||
|| hash == FnvHash.Constants.GROUP_CONCAT) {
|
||||
return SQLCharExpr.DEFAULT_DATA_TYPE;
|
||||
}
|
||||
|
||||
@@ -25,11 +25,16 @@ import java.util.List;
|
||||
public class SQLIntervalExpr extends SQLExprImpl {
|
||||
|
||||
private SQLExpr value;
|
||||
private SQLIntervalUnit unit;
|
||||
private SQLIntervalUnit unit;
|
||||
|
||||
public SQLIntervalExpr(){
|
||||
}
|
||||
|
||||
public SQLIntervalExpr(SQLExpr value, SQLIntervalUnit unit){
|
||||
setValue(value);
|
||||
this.unit = unit;
|
||||
}
|
||||
|
||||
public SQLIntervalExpr clone() {
|
||||
SQLIntervalExpr x = new SQLIntervalExpr();
|
||||
if (value != null) {
|
||||
|
||||
Reference in New Issue
Block a user