poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ye...@apache.org
Subject svn commit: r1853268 - in /poi/trunk: src/java/org/apache/poi/ss/formula/functions/DStarRunner.java test-data/spreadsheet/DGet.xls
Date Sat, 09 Feb 2019 13:00:09 GMT
Author: yegor
Date: Sat Feb  9 13:00:09 2019
New Revision: 1853268

URL: http://svn.apache.org/viewvc?rev=1853268&view=rev
Log:
Bug 62980: Make D* functions ignore case in headings

Modified:
    poi/trunk/src/java/org/apache/poi/ss/formula/functions/DStarRunner.java
    poi/trunk/test-data/spreadsheet/DGet.xls

Modified: poi/trunk/src/java/org/apache/poi/ss/formula/functions/DStarRunner.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/formula/functions/DStarRunner.java?rev=1853268&r1=1853267&r2=1853268&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/formula/functions/DStarRunner.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/formula/functions/DStarRunner.java Sat Feb  9 13:00:09
2019
@@ -164,6 +164,7 @@ public final class DStarRunner implement
 
     /**
      * For a given database returns the column number for a column heading.
+     * Comparison is case-insensitive.
      *
      * @param db Database.
      * @param name Column heading.
@@ -183,7 +184,7 @@ public final class DStarRunner implement
                 continue;
             }
             String columnName = OperandResolver.coerceValueToString(columnNameValueEval);
-            if(name.equals(columnName)) {
+            if(name.equalsIgnoreCase(columnName)) {
                 resultColumn = column;
                 break;
             }

Modified: poi/trunk/test-data/spreadsheet/DGet.xls
URL: http://svn.apache.org/viewvc/poi/trunk/test-data/spreadsheet/DGet.xls?rev=1853268&r1=1853267&r2=1853268&view=diff
==============================================================================
Binary files - no diff available.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message