java.jdbc

Make where-params optional for update-values function

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Declined
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

This prevents having to pass a wonky always-true clause (e.g. ["1=1"]) as the where-params when updating all the rows in a table.

Activity

Hide
Sean Corfield added a comment -

See JDBC-14 since I'm declining this for the same reason. Performing a global update is an unusual operation and I think the API should prevent you from accidentally updating all rows, just as it should prevent you from deleting all rows. Requiring a where clause does that.

Show
Sean Corfield added a comment - See JDBC-14 since I'm declining this for the same reason. Performing a global update is an unusual operation and I think the API should prevent you from accidentally updating all rows, just as it should prevent you from deleting all rows. Requiring a where clause does that.
Hide
Trent Ogren added a comment -

I'm aware that I might have to sign the Clojure CA. I just thought I'd see what you think first...

Show
Trent Ogren added a comment - I'm aware that I might have to sign the Clojure CA. I just thought I'd see what you think first...

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: