Provide better protocol-based extension point for setting parameters in a SQL statement

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.

Environment

None

Activity

Show:

Sean Corfield December 30, 2013 at 12:24 AM

Added ISQLParameter / set-parameter protocol / function.

Completed

Details

Assignee

Reporter

Priority

Created December 26, 2013 at 7:38 PM
Updated June 1, 2016 at 6:41 PM
Resolved June 1, 2016 at 6:41 PM