<< Back to previous view

[JDBC-24] Make where-params optional for update-values function Created: 04/Jan/12  Updated: 01/Jun/16  Resolved: 04/Jan/12

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

Type: Enhancement Priority: Minor
Reporter: Trent Ogren Assignee: Sean Corfield
Resolution: Declined Votes: 0
Labels: None

Attachments: Text File optional-where-params-update-values.patch    
Patch: Code and Test


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.

Comment by Trent Ogren [ 04/Jan/12 11:04 PM ]

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

Comment by Sean Corfield [ 04/Jan/12 11:43 PM ]

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.

Generated at Thu Jan 18 20:14:30 CST 2018 using JIRA 4.4#649-r158309.