Bug #49855 Multi-table RENAME doesn't work with TMP tables.
| Submitted: | 21 Dec 2009 19:47 | Modified: | 22 Dec 2009 6:49 |
|---|---|---|---|
| Reporter: | Konstantin Osipov (OCA) | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
| Version: | 4.1, 5.0, 5,1, next bzr | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[21 Dec 2009 19:47]
Konstantin Osipov
[21 Dec 2009 19:48]
Konstantin Osipov
I'm using mysql-5.6. It's probably present in 4.0 and up (needs investigation, which I would like to request the verifier to perform).
[22 Dec 2009 6:43]
Sveta Smirnova
Thank you for the report. Verified as described. Problem exists in earlier versions (tested since 4.1)
[22 Dec 2009 6:49]
Sveta Smirnova
This is not a bug actually. See http://dev.mysql.com/doc/refman/5.1/en/rename-table.html: You cannot use RENAME to rename a TEMPORARY table. However, you can use ALTER TABLE instead: mysql> ALTER TABLE orig_name RENAME new_name; There is verified feature request: bug #1154 about this also.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.