mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
schemat stat condition support cast & current_date
This commit is contained in:
@@ -840,7 +840,13 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
|
||||
}
|
||||
|
||||
Object value;
|
||||
if (item instanceof SQLMethodInvokeExpr) {
|
||||
|
||||
if (item instanceof SQLCastExpr) {
|
||||
item = ((SQLCastExpr) item).getExpr();
|
||||
}
|
||||
|
||||
if (item instanceof SQLMethodInvokeExpr
|
||||
|| item instanceof SQLCurrentTimeExpr) {
|
||||
value = item.toString();
|
||||
} else {
|
||||
value = SQLEvalVisitorUtils.eval(dbType, item, parameters, false);
|
||||
|
||||
Reference in New Issue
Block a user