java.jdbc

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

Details

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

Activity

Hide
Sean Corfield added a comment -

Added ISQLParameter / set-parameter protocol / function.

Show
Sean Corfield added a comment - Added ISQLParameter / set-parameter protocol / function.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: