Bug #30099 rename/drop database ignores temp tables
| Submitted: | 27 Jul 2007 14:29 | Modified: | 27 Jul 2007 14:44 |
|---|---|---|---|
| Reporter: | Martin Friebe (Gold Quality Contributor) (OCA) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
| Version: | 5.0.48 / 5.1.21 / 6.0.5 | OS: | FreeBSD |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | qc, rename database, temporary table | ||
[27 Jul 2007 14:29]
Martin Friebe
[27 Jul 2007 14:44]
MySQL Verification Team
Thank you for the bug report.
[16 Jun 2008 15:00]
Jørgen Løland
A related problem: If you create a temporary table with the same name as an existing table, drop database will fail: > create database dbase; > use dbase; > create table t (i int); > insert into t values (1); > create temporary table t (i int); > insert into t values (2); > drop database dbase; ERROR 1010 (HY000): Error dropping database (can't rmdir './dbase', errno: 39) > use dbase; > select * from t; +------+ | i | +------+ | 1 | +------+ Notice that the result is from the base table t, not the temporary table t.
[16 Jun 2008 15:03]
Jørgen Løland
The above drop database problem was observed on mysql-6.0.5 on linux/64bit
[17 Jun 2008 7:05]
Jørgen Løland
This bug causes some problems for backup. See bug#34903
[17 Sep 2009 14:52]
Konstantin Osipov
Lars-Erik, please contact me on IRC I will show what function to patch and how.
[15 Oct 2009 6:20]
Lars-Erik Bjørk
The related problem reported by Jørgen Løland, has now been filed as a separate bug: bug#48067
[1 Dec 2009 16:45]
Konstantin Osipov
Bug #49194 was marked a duplicate of this bug.
[20 May 2014 7:25]
Marko Mäkelä
Bug#72686 is a duplicate of this.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.064 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.