java.jdbc

Support for setting options such as setTimeout on the PreparedStatement

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • 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.

Activity

Hide
Sean Corfield added a comment -

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.

Show
Sean Corfield added a comment - 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.
Hide
Sean Corfield added a comment -

Already possible with existing API.

Show
Sean Corfield added a comment - Already possible with existing API.
Hide
David Powell added a comment -

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

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

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: