Bug #23603 | Partitions: reorganize means delete | ||
---|---|---|---|
Submitted: | 24 Oct 2006 23:44 | Modified: | 14 Feb 2008 16:42 |
Reporter: | Peter Gulutzan | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S3 (Non-critical) |
Version: | 5.1.13-beta-debug | OS: | Linux (SUSE 10.0 / 64-bit) |
Assigned to: | Mattias Jonsson | CPU Architecture: | Any |
[24 Oct 2006 23:44]
Peter Gulutzan
[25 Oct 2006 9:33]
Sveta Smirnova
Thank you for the report. Verified as described on 32-bit Linux using last BK sources.
[18 Mar 2007 18:54]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/22220 ChangeSet@1.2478, 2007-03-18 22:55:02+04:00, holyfoot@mysql.com +4 -0 Bug #23603 Partitions: reorganize means delete added code to raise error in case when there's no partition for the existing value(s)
[4 Apr 2007 7:26]
Mikael Ronström
That it is possible to delete records using ALTER TABLE was intentional. So this is more of a change of behaviour rather than a bug fix. I suggest asking a group of e.g. Peter Gulutzan, Timour and probably some more. If it isn't possible to change partition limits and even remove data as part of the reorganize means there is functionality missing. The user might need exactly that functionality in some cases.
[15 Oct 2007 12:48]
Mikael Ronström
Do the following: 1) REORGANIZE means delete should still be allowed => Requires more privileges to reorganize as Peter mentioned 2) Add new flag to ALTER TABLE that specifies that DELETE of REORGANIZE should not be allowed (syntax flag) 3) Move this to Documenting category and add comments for documentation of this new functionality.
[21 Nov 2007 17:55]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/38226 ChangeSet@1.2627, 2007-11-21 18:55:33+01:00, mattiasj@witty.local +11 -0 Bug#23603: Partitions: reoganize means delete Problem was that a user with ALTER priv (and without DROP priv) could do a REORGANIZE PARTITION that could delete rows. Added option "WITH NO DELETE" for use with REORGANIZE PARTITION for non delete operations (do not require DROP priv). Requiring DROP priv if "WITH NO DELETE" is NOT used.
[14 Feb 2008 16:42]
Mattias Jonsson
This behavior was done intentionally and there will be no change in privileges for this. (no change in server, patch will not be pushed). Also see Bug#32980