<< Back to previous view

[JDBC-97] Support for setting options such as setTimeout on the PreparedStatement Created: 11/Jun/14  Updated: 01/Jun/16  Resolved: 11/Jun/14

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Major
Reporter: David Powell Assignee: Sean Corfield
Resolution: Declined Votes: 0
Labels: None


 Description   

It is currently rather difficult to set options such as the stmt.setTimeout() as the creation of the PreparedStatement is encapsulated inside db-query-with-resultset. Some sort of option or hook for this would be cool.



 Comments   
Comment by Sean Corfield [ 11/Jun/14 12:11 PM ]

You can pass a PreparedStatement instead of a SQL string - so you can build your PreparedStatement - using prepare-statement or manually - and then pass it into query as the first element of the vector that would normally contain the SQL string plus parameters.

Comment by Sean Corfield [ 11/Jun/14 12:11 PM ]

Already possible with existing API.

Comment by David Powell [ 11/Jun/14 12:35 PM ]

Ah cool - I was trying to do this with execute!, but I see that that won't be possible until release 0.3.4.

Generated at Sun Oct 21 22:24:29 CDT 2018 using JIRA 4.4#649-r158309.