Polished the support for looking up column values by column label (SPR-7506)

This commit is contained in:
Thomas Risberg
2010-09-08 18:59:28 +00:00
parent 90636f66a8
commit 1247d2085b

View File

@@ -131,13 +131,13 @@ public class ResultSetWrappingSqlRowSet implements SqlRowSet {
*/
public int findColumn(String columnLabel) throws InvalidResultSetAccessException {
Integer columnIndex = columnLabelMap.get(columnLabel);
try {
if (columnIndex == null) {
if (columnIndex == null) {
try {
columnIndex = this.resultSet.findColumn(columnLabel);
}
}
catch (SQLException se) {
throw new InvalidResultSetAccessException(se);
catch (SQLException se) {
throw new InvalidResultSetAccessException(se);
}
}
return columnIndex.intValue();
}