@@ -94,16 +94,16 @@ public List handleResultSets(Statement stmt) throws SQLException {
94
94
ResultSet rs = stmt .getResultSet ();
95
95
96
96
while (rs == null ) {
97
- // move forward to get the first resultset in case the driver
98
- // doesn't return the resultset as the first result (HSQLDB 2.1)
99
- if (stmt .getMoreResults ()) {
100
- rs = stmt .getResultSet ();
101
- } else {
102
- if (stmt .getUpdateCount () == -1 ) {
103
- // no more results. Must be no resultset
104
- break ;
105
- }
97
+ // move forward to get the first resultset in case the driver
98
+ // doesn't return the resultset as the first result (HSQLDB 2.1)
99
+ if (stmt .getMoreResults ()) {
100
+ rs = stmt .getResultSet ();
101
+ } else {
102
+ if (stmt .getUpdateCount () == -1 ) {
103
+ // no more results. Must be no resultset
104
+ break ;
106
105
}
106
+ }
107
107
}
108
108
109
109
validateResultMapsCount (rs , resultMapCount );
@@ -298,17 +298,9 @@ protected void loadMappedAndUnmappedColumnNames(ResultSet rs, ResultMap resultMa
298
298
final String columnName = configuration .isUseColumnLabel () ? rsmd .getColumnLabel (i ) : rsmd .getColumnName (i );
299
299
final String upperColumnName = columnName .toUpperCase (Locale .ENGLISH );
300
300
if (mappedColumns .contains (upperColumnName )) {
301
- if (rsmd .isCaseSensitive (i )) {
302
- mappedColumnNames .add (columnName );
303
- } else {
304
- mappedColumnNames .add (upperColumnName );
305
- }
301
+ mappedColumnNames .add (upperColumnName );
306
302
} else {
307
- if (rsmd .isCaseSensitive (i )) {
308
- unmappedColumnNames .add (columnName );
309
- } else {
310
- unmappedColumnNames .add (upperColumnName );
311
- }
303
+ unmappedColumnNames .add (columnName );
312
304
}
313
305
}
314
306
}
@@ -341,7 +333,7 @@ protected Object createResultObject(ResultSet rs, ResultMap resultMap, List<Clas
341
333
}
342
334
343
335
protected Object createParameterizedResultObject (ResultSet rs , Class resultType ,
344
- List <ResultMapping > constructorMappings , List <Class > constructorArgTypes , List <Object > constructorArgs ) throws SQLException {
336
+ List <ResultMapping > constructorMappings , List <Class > constructorArgTypes , List <Object > constructorArgs ) throws SQLException {
345
337
boolean foundValues = false ;
346
338
for (ResultMapping constructorMapping : constructorMappings ) {
347
339
final Class parameterType = constructorMapping .getJavaType ();
@@ -350,11 +342,11 @@ protected Object createParameterizedResultObject(ResultSet rs, Class resultType,
350
342
// check for nested query
351
343
if (constructorMapping .getNestedQueryId () != null ) {
352
344
value = getNestedQueryConstructorValue (rs , constructorMapping );
353
- } else if (constructorMapping .getNestedResultMapId () != null ) {
354
- final ResultMap resultMap = configuration .getResultMap (constructorMapping .getNestedResultMapId ());
355
- final ResultLoaderMap lazyLoader = instantiateResultLoaderMap ();
356
- value = createResultObject (rs , resultMap , lazyLoader );
357
- }else {
345
+ } else if (constructorMapping .getNestedResultMapId () != null ) {
346
+ final ResultMap resultMap = configuration .getResultMap (constructorMapping .getNestedResultMapId ());
347
+ final ResultLoaderMap lazyLoader = instantiateResultLoaderMap ();
348
+ value = createResultObject (rs , resultMap , lazyLoader );
349
+ } else {
358
350
// get simple result
359
351
final TypeHandler typeHandler = constructorMapping .getTypeHandler ();
360
352
value = typeHandler .getResult (rs , column );
0 commit comments