You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a simple table like size(id varchar, size bigint), run the following code (with proper connectionstring)
Connection c = DriverManager.getConnection("...", null, null);
Statement s = c.createStatement();
ResultSet rs = s.executeQuery("SELECT \"id\" FROM \"size\" WHERE \"id\" IN ('100')");
System.out.println(rs.findColumn("id"));
Expected behaviour: 1
Current behaviour: 0
As far as I understand from java.sql.ResultSet javadoc, fields in ResultSet are indexed starting from 1, not 0.
The text was updated successfully, but these errors were encountered:
…tSets
- Fix issue #31 complement.
- Return a result even if there's no row in the result set but the column
exist in the statement.
- Fix the exception thrown by the method when the given column name does
not exist in the result set.
Given a simple table like size(id varchar, size bigint), run the following code (with proper connectionstring)
Expected behaviour: 1
Current behaviour: 0
As far as I understand from java.sql.ResultSet javadoc, fields in ResultSet are indexed starting from 1, not 0.
The text was updated successfully, but these errors were encountered: