Skip to content

Commit

Permalink
Try fix #2152
Browse files Browse the repository at this point in the history
  • Loading branch information
KomachiSion committed Apr 9, 2019
1 parent 13e6a76 commit ebf015a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public QueryResultMetaData(final ResultSetMetaData resultSetMetaData) {
private Multimap<String, Integer> getColumnLabelAndIndexMap(final ResultSetMetaData resultSetMetaData) {
Multimap<String, Integer> result = HashMultimap.create();
for (int columnIndex = 1; columnIndex <= resultSetMetaData.getColumnCount(); columnIndex++) {
result.put(resultSetMetaData.getColumnLabel(columnIndex), columnIndex);
result.put(resultSetMetaData.getColumnLabel(columnIndex).toLowerCase(), columnIndex);
}
return result;
}
Expand Down Expand Up @@ -113,7 +113,7 @@ public String getColumnName(final int columnIndex) {
* @return column name
*/
public Integer getColumnIndex(final String columnLabel) {
return new ArrayList<>(columnLabelAndIndexes.get(columnLabel)).get(0);
return new ArrayList<>(columnLabelAndIndexes.get(columnLabel.toLowerCase())).get(0);
}

/**
Expand Down

0 comments on commit ebf015a

Please sign in to comment.