[MDEV-706] LP:775661 - Incorrect index name when dropping/adding index in the same statement Created: 2011-05-19 Updated: 2013-10-05 Resolved: 2013-10-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.1, 5.5.30, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | 10.0.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Aurimas Mikalauskas (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad, upstream | ||
| Attachments: |
|
| Description |
|
Not sure if this is a Percona Server or a MySQL bug, I'll report it here and let you decide. I've tested this both against 5.5.11-55 Percona Server (GPL), Release 20.2 and 5.1.56-rel12.7 (Percona Server (GPL), 12.7, Revision 224). I can't seem to be able to drop and create an index with the same name with a single statement:
Oh and interestingly enough if I explicitly specify the index name, it seems to work:
As a side note, I wonder why when I'm running two statements I get 0 rows affected both times while in the last example it says 12 rows affected (which is total amount of rows in that table). |
| Comments |
| Comment by Alexey Kopytov [ 2011-05-11 ] |
|
Re: Incorrect index name when dropping/adding index in the same statement |
| Comment by Rasmus Johansson (Inactive) [ 2011-05-11 ] |
|
Re: [Bug 775661] Re: Incorrect index name when dropping/adding index in the same statement Strange. I remember using exact command as Aurimas showed all the time to Should we file MySQL but when ? – Percona Live MySQL Conference comes to NYC |
| Comment by Alexey Kopytov [ 2011-05-12 ] |
|
Re: Incorrect index name when dropping/adding index in the same statement I have reported http://bugs.mysql.com/bug.php?id=61146 |
| Comment by Rasmus Johansson (Inactive) [ 2011-05-12 ] |
|
Re: [Bug 775661] Re: Incorrect index name when dropping/adding index in the same statement On Thu, May 12, 2011 at 2:20 AM, Alexey Kopytov > It turns out it does work with built-in InnoDB in MySQL 5.1, but fails – Percona Live MySQL Conference comes to NYC |
| Comment by Alexey Kopytov [ 2011-05-25 ] |
|
Re: Incorrect index name when dropping/adding index in the same statement |
| Comment by Alexey Kopytov [ 2011-05-25 ] |
|
Re: Incorrect index name when dropping/adding index in the same statement |
| Comment by Stewart Smith [ 2011-05-25 ] |
|
Re: Incorrect index name when dropping/adding index in the same statement |
| Comment by Rasmus Johansson (Inactive) [ 2011-05-25 ] |
|
Launchpad bug id: 775661 |
| Comment by Elena Stepanova [ 2013-03-29 ] |
|
The upstream bug http://bugs.mysql.com/bug.php?id=54927 was fixed in 5.6.3, so the fix should be merged into 10.x when the time comes. The fix wasn't backported into former versions of MySQL. |