Merge remote-tracking branch 'upstream/master'

This commit is contained in:
wenshao
2013-06-06 12:28:45 +08:00
28 changed files with 676 additions and 169 deletions
@@ -796,7 +796,7 @@ public class SQLEvalVisitorUtils {
if (wallConditionContext != null) {
wallConditionContext.setConstArithmetic(true);
}
if (leftValue == null || rightValue == null) {
return false;
}
@@ -1290,7 +1290,7 @@ public class SQLEvalVisitorUtils {
}
if (a instanceof String || b instanceof String) {
return ((String) a).compareTo((String) b) < 0;
return (castToString(a)).compareTo(castToString(b)) < 0;
}
if (a instanceof BigDecimal || b instanceof BigDecimal) {