diff options
author | Josh Micich <josh@apache.org> | 2009-01-27 19:02:13 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2009-01-27 19:02:13 +0000 |
commit | 7aa965d079344d296edb339a77bbf2f9a6ce1fb8 (patch) | |
tree | da9761fe1efc4fa4e200b9d512994617c84da83c /src/java/org | |
parent | ed4b7878bb7ea5552f9a53feef7664fcd6a2ba91 (diff) | |
download | poi-7aa965d079344d296edb339a77bbf2f9a6ce1fb8.tar.gz poi-7aa965d079344d296edb339a77bbf2f9a6ce1fb8.zip |
Fix for bug 46613 - evaluator should perform case insensitive string comparisons
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@738188 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/hssf/record/formula/eval/RelationalOperationEval.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/record/formula/eval/RelationalOperationEval.java b/src/java/org/apache/poi/hssf/record/formula/eval/RelationalOperationEval.java index a1397f07f4..9dee4bc1e0 100644 --- a/src/java/org/apache/poi/hssf/record/formula/eval/RelationalOperationEval.java +++ b/src/java/org/apache/poi/hssf/record/formula/eval/RelationalOperationEval.java @@ -97,7 +97,7 @@ public abstract class RelationalOperationEval implements OperationEval { if (vb instanceof StringEval) { StringEval sA = (StringEval) va; StringEval sB = (StringEval) vb; - return sA.getStringValue().compareTo(sB.getStringValue()); + return sA.getStringValue().compareToIgnoreCase(sB.getStringValue()); } return 1; } |