<< Back to previous view

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

Status: Closed
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


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.

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

Added ISQLParameter / set-parameter protocol / function.

Generated at Thu Sep 21 11:01:16 CDT 2017 using JIRA 4.4#649-r158309.