mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for SchemaStatVisitor. for issue #2306
This commit is contained in:
@@ -641,11 +641,18 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
|
||||
if (valueColumn != null) {
|
||||
continue;
|
||||
}
|
||||
Object value = SQLEvalVisitorUtils.eval(dbType, item, parameters, false);
|
||||
if (value == SQLEvalVisitor.EVAL_VALUE_NULL) {
|
||||
value = null;
|
||||
|
||||
Object value;
|
||||
if (item instanceof SQLMethodInvokeExpr) {
|
||||
value = item.toString();
|
||||
} else {
|
||||
value = SQLEvalVisitorUtils.eval(dbType, item, parameters, false);
|
||||
if (value == SQLEvalVisitor.EVAL_VALUE_NULL) {
|
||||
value = null;
|
||||
}
|
||||
}
|
||||
condition.getValues().add(value);
|
||||
|
||||
condition.addValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user