Skip to content

Commit 1247d20

Browse files
author
Thomas Risberg
committed
Polished the support for looking up column values by column label (SPR-7506)
1 parent 90636f6 commit 1247d20

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

org.springframework.jdbc/src/main/java/org/springframework/jdbc/support/rowset/ResultSetWrappingSqlRowSet.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ public final SqlRowSetMetaData getMetaData() {
131131
*/
132132
public int findColumn(String columnLabel) throws InvalidResultSetAccessException {
133133
Integer columnIndex = columnLabelMap.get(columnLabel);
134-
try {
135-
if (columnIndex == null) {
134+
if (columnIndex == null) {
135+
try {
136136
columnIndex = this.resultSet.findColumn(columnLabel);
137137
}
138-
}
139-
catch (SQLException se) {
140-
throw new InvalidResultSetAccessException(se);
138+
catch (SQLException se) {
139+
throw new InvalidResultSetAccessException(se);
140+
}
141141
}
142142
return columnIndex.intValue();
143143
}

0 commit comments

Comments
 (0)