mirror of https://github.com/apache/poi.git
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:
parent
fbbf3425a9
commit
c438465b08
|
@ -164,6 +164,7 @@ public final class DStarRunner implements Function3Arg {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For a given database returns the column number for a column heading.
|
* For a given database returns the column number for a column heading.
|
||||||
|
* Comparison is case-insensitive.
|
||||||
*
|
*
|
||||||
* @param db Database.
|
* @param db Database.
|
||||||
* @param name Column heading.
|
* @param name Column heading.
|
||||||
|
@ -183,7 +184,7 @@ public final class DStarRunner implements Function3Arg {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String columnName = OperandResolver.coerceValueToString(columnNameValueEval);
|
String columnName = OperandResolver.coerceValueToString(columnNameValueEval);
|
||||||
if(name.equals(columnName)) {
|
if(name.equalsIgnoreCase(columnName)) {
|
||||||
resultColumn = column;
|
resultColumn = column;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue