Bug #3313 | Dangerous update/delete protection | ||
---|---|---|---|
Submitted: | 27 Mar 2004 16:38 | Modified: | 29 Mar 2004 13:00 |
Reporter: | James Sleeman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | OS: | ||
Assigned to: | Peter Gulutzan | CPU Architecture: | Any |
[27 Mar 2004 16:38]
James Sleeman
[27 Mar 2004 18:30]
MySQL Verification Team
Already exists an option for the mysql client, for to be safe with delete and update. -U, --safe-updates Only allow UPDATE and DELETE that uses keys. However you are asking at the server side and I am assigning PeterG for a more complete answer for you about.
[27 Mar 2004 18:39]
James Sleeman
Yes, although I wasn't aware of that client option, a similar server option would be invaluable as it would allow protection for clients and other uses of the server that do not support such a restriction natively. Adding the option to my client section of my.cnf now though ;-)
[29 Mar 2004 13:00]
Peter Gulutzan
Anyone who wishes may say "SET SQL_SAFE_UPDATES = TRUE" when starting.