We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90759e8 commit 2762679Copy full SHA for 2762679
hibernate-reactive-core/src/main/java/org/hibernate/reactive/adaptor/impl/ResultSetAdaptor.java
@@ -494,8 +494,16 @@ public Object getObject(String columnLabel) {
494
495
@Override
496
public int findColumn(String columnLabel) {
497
- return rows.columnsNames().indexOf( columnLabel ) + 1;
498
-// return row.getColumnIndex( columnLabel );
+ // JDBC parameters index start from 1
+ int index = 1;
499
+ for ( String column : rows.columnsNames() ) {
500
+ // Some dbs, like Oracle and Db2, return the column names always in uppercase
501
+ if ( column.equalsIgnoreCase( columnLabel ) ) {
502
+ return index;
503
+ }
504
+ index++;
505
506
+ return -1;
507
}
508
509
0 commit comments