java.jdbc

Allow more functions to accept options for PreparedStatement

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Now that functions accept a single options map, that could be passed between calls easily enough, which would allow options for prepare-statement to be passed to query and other functions.

Activity

Hide
Sean Corfield added a comment -

Note that query currently does have a way to pass options to the prepare-statement call but it's not obvious (and I'd forgotten until I looked at the code): the [sql & params] vector can actually be [opts sql & params] and that opts is passed to prepare-statement. That is really no longer necessary since we could pass query's opts through db-query-with-resultset - a function that does not yet take options!

Show
Sean Corfield added a comment - Note that query currently does have a way to pass options to the prepare-statement call but it's not obvious (and I'd forgotten until I looked at the code): the [sql & params] vector can actually be [opts sql & params] and that opts is passed to prepare-statement. That is really no longer necessary since we could pass query's opts through db-query-with-resultset - a function that does not yet take options!
Hide
Sean Corfield added a comment -

Fixed in 0.6.0 RC 2

Show
Sean Corfield added a comment - Fixed in 0.6.0 RC 2

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: