Bug 62980: Make D* functions ignore case in headings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1853268 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2019-02-09 13:00:09 +00:00
parent fbbf3425a9
commit c438465b08
2 changed files with 2 additions and 1 deletions

View File

@ -164,6 +164,7 @@ public final class DStarRunner implements Function3Arg {
/**
* 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 implements Function3Arg {
continue;
}
String columnName = OperandResolver.coerceValueToString(columnNameValueEval);
if(name.equals(columnName)) {
if(name.equalsIgnoreCase(columnName)) {
resultColumn = column;
break;
}

Binary file not shown.