Issue Details (XML | Word | Printable)

Key: JDBC-157
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Roman Rokytskyy
Reporter: Henner Kollmann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jaybird JDBC Driver

resultSet.next() error

Created: 20/Jun/10 11:28 AM   Updated: 11/Mar/11 07:12 PM
Component/s: None
Affects Version/s: Jaybird 2.1.6
Fix Version/s: None

Environment: Windows


 Description  « Hide
It seems that there is a bug in resultSet.next(). After
resultSet.next() returns false, if executed again returns
an exeception is thrown.

This is not the behavior of all other tested jdbc drivers: Oracle and JdbcOdbcDriver.

They just returns false again.




 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Roman Rokytskyy added a comment - 11/Mar/11 07:12 PM
From the Javadoc for ResultSet.next()

"If the result set type is TYPE_FORWARD_ONLY, it is vendor specified whether their JDBC driver implementation will return false or throw an SQLException on a subsequent call to next."

Frankly, I have nothing against making subsequent call to return false, but please add appropriate feature request.