mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for concat
This commit is contained in:
@@ -791,6 +791,10 @@ public class SQLEvalVisitorUtils {
|
||||
if (wallConditionContext != null) {
|
||||
wallConditionContext.setConstArithmetic(true);
|
||||
}
|
||||
|
||||
if (leftValue == null || rightValue == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Object value = null;
|
||||
switch (x.getOperator()) {
|
||||
|
||||
@@ -33,7 +33,7 @@ public class Concat implements Function {
|
||||
|
||||
Object itemValue = item.getAttributes().get(EVAL_VALUE);
|
||||
if (itemValue == null) {
|
||||
continue;
|
||||
return null;
|
||||
}
|
||||
buf.append(itemValue.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user