Issue Details (XML | Word | Printable)

Key: JDBC-453
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Mark Rotteveel
Reporter: Mark Rotteveel
Votes: 0
Watchers: 0
Operations

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

Allow absolute position with value 0

Created: 11/Sep/16 07:35 AM   Updated: 18/Dec/16 02:58 PM
Component/s: JDBC driver
Affects Version/s: Jaybird 2.2.11, Jaybird 3.0.0-alpha-1
Fix Version/s: Jaybird 2.2.12, Jaybird 3.0.0


 Description  « Hide
Jaybird currently throws an exception when calling ResultSet.absolute(0). This should be changed to allow value 0. Between JDBC 2 (Java 1.3.1) and JDBC 3 (1.4.2) the javadoc of ResultSet.absolute was changed from

"Throws:
    SQLException - if a database access error occurs, the row is 0, or the result set type is TYPE_FORWARD_ONLY"

to

"Throws:
    SQLException - if a database access error occurs, or the result set type is TYPE_FORWARD_ONLY"

See also: http://stackoverflow.com/questions/39429401/jaybird-firebird-jdbc-absolute-method

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mark Rotteveel added a comment - 01/Oct/16 11:21 AM
Removed condition that threw this exception, added extra tests