| Bug #30099 | rename/drop database ignores temp tables | ||
|---|---|---|---|
| Submitted: | 27 Jul 2007 16:29 | Modified: | 27 Jul 2007 16:44 |
| Reporter: | Martin Friebe (Gold Quality Contributor) (SCA) | ||
| Status: | Verified | ||
| Category: | Server: DDL | Severity: | S3 (Non-critical) |
| Version: | 5.0.48 / 5.1.21 / 6.0.5 | OS: | FreeBSD |
| Assigned to: | Lars-Erik Bjørk | Target Version: | |
| Tags: | qc, rename database, temporary table | ||
| Triage: | Triaged: D3 (Medium) / R3 (Medium) / E4 (High) | ||
[27 Jul 2007 16:29]
Martin Friebe
[27 Jul 2007 16:44]
Miguel Solorzano
Thank you for the bug report.
[16 Jun 2008 17:00]
Jorgen Loland
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 17:03]
Jorgen Loland
The above drop database problem was observed on mysql-6.0.5 on linux/64bit
[17 Jun 2008 9:05]
Jorgen Loland
This bug causes some problems for backup. See bug#34903
[17 Sep 16:52]
Konstantin Osipov
Lars-Erik, please contact me on IRC I will show what function to patch and how.
[15 Oct 8:20]
Lars-Erik Bjørk
The related problem reported by Jørgen Løland, has now been filed as a separate bug: bug#48067
