<< Back to previous view

[JDBC-86] Provide better protocol-based extension point for setting parameters in a SQL statement Created: 26/Dec/13  Updated: 29/Dec/13  Resolved: 29/Dec/13

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

Type: Enhancement Priority: Major
Reporter: Sean Corfield Assignee: Sean Corfield
Resolution: Completed Votes: 0
Labels: None


 Description   

The current hooks are:

  • ISQLValue protocol based solely on the value, but still uses .setObject to add the parameter value
  • :set-parameters key in db-spec, to override the entire parameter setting mechanism

Marcus Brito suggested this: https://github.com/clojure/java.jdbc/pull/34

That's a cleaner extension point (that still preserves the basic ISQLValue hook) but I can't accept a PR as-is.



 Comments   
Comment by Sean Corfield [ 29/Dec/13 6:24 PM ]

Added ISQLParameter / set-parameter protocol / function.

Generated at Thu Jul 24 08:06:27 CDT 2014 using JIRA 4.4#649-r158309.