mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
fix SQLEvalVisitorUtils.lt cast bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user