Issue Details (XML | Word | Printable)

Key: JDBC-602
Type: New Feature New Feature
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

Implement statement timeouts of the v16 protocol using Statement.setQueryTimeout

Created: 26/Nov/19 05:12 PM   Updated: 19/Jan/20 04:59 PM
Component/s: JDBC driver, Wire protocol
Affects Version/s: None
Fix Version/s: Jaybird 4.0.0-beta-2, Jaybird 4


 Description  « Hide
Add support for the v16 statement timeouts using Statement.setQueryTimeout.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mark Rotteveel added a comment - 14/Dec/19 01:24 PM
Implemented for pure-java.

Tried implementing it for native, but didn't get it to work. Leaving this ticket open for now. I will decide if support will be extended to native or not before release.

Mark Rotteveel added a comment - 22/Dec/19 09:47 AM
Implemented for native as well. The problem was that fbclient has an optimization where it will delay sending the execute until the first fetch.

The tests currently don't check for native client library support, but I couldn't find a way to detect this properly. I have asked on jna-users if there is a good way to detect presence or absence of a function.

Mark Rotteveel added a comment - 28/Dec/19 12:26 PM
Added a feature check in an invocation handler that I use to replace the default invocation handler of JNA. This feature check is then used to opt to do nothing when setting the timeout, and as a feature check in the tests.