Bug #69259 | DROP (some object) IF EXISTS should not generate warnings | ||
---|---|---|---|
Submitted: | 16 May 2013 18:30 | Modified: | 14 Jun 2013 15:38 |
Reporter: | Juan Manuel Palacios | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S4 (Feature request) |
Version: | 5.5.30 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | IF EXISTS, warning |
[16 May 2013 18:30]
Juan Manuel Palacios
[16 May 2013 20:58]
MySQL Verification Team
Thank you for the bug report. Even understanding your point I could say isn't a bug if removed that warning anyone will open a bug report asking enabling again the warning because he wants to know through the warning or absence of it if actually an object was removed or not. At least could be a feature request to introduce a way to disable that warning with a variable for option file/command line.
[20 May 2013 7:36]
Juan Manuel Palacios
Yes, the disabling of the warning could be a server setting, available to the cnf file, to the server during runtime (e.g. SET @@warn_if_exists = 1), and maybe even to command line clients as well. And since I think the argument about knowing that the object may not exist if 'IF NOT EXISTS' is used, I suggest the mode be set by default to silence the warnings, i.e. to not emit them. Anything I should provide to get this ticket out of "Need Feedback" and into planning for implementation? Regards!
[23 May 2013 16:27]
Jon Olav Hauglid
The documentation (http://dev.mysql.com/doc/refman/5.5/en/drop-table.html) says: Use IF EXISTS to prevent an error from occurring for tables that do not exist. A NOTE is generated for each nonexistent table when using IF EXISTS. See Section 13.7.5.41, “SHOW WARNINGS Syntax”. Sounds to me like it works as documented. Which means this is not a bug, but a feature request (change of behavior).
[23 May 2013 19:33]
Juan Manuel Palacios
Changing this ticket to feature request, according to comments recently posted to it.