bug fixed for concat

This commit is contained in:
wenshao
2013-06-03 14:10:43 +08:00
parent 73ee2a154a
commit 9744abaada
3 changed files with 44 additions and 1 deletions
@@ -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());
}