Bug #21431 | Incomplete support of temporary tables | ||
---|---|---|---|
Submitted: | 3 Aug 2006 16:17 | Modified: | 8 Sep 2006 5:23 |
Reporter: | Tomash Brechko | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 4.1.22-BK, 5.0-BK | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[3 Aug 2006 16:17]
Tomash Brechko
[26 Aug 2006 13:08]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described with 5.0.25-BK on Linux.
[6 Jul 2007 23:53]
Kolbe Kegel
At the very least, we need to make sure this is thoroughly documented for existing releases.
[23 Jan 2008 20:22]
Timothy Smith
One comment which might be helpful. While RENAME TABLE refuses to see the TEMPORARY table, ALTER TABLE ... RENAME does work fine. mysql> create temporary table t2 (id int); Query OK, 0 rows affected (0.01 sec) mysql> insert delayed into t2 values (3); ERROR 1146 (42S02): Table 'test.t2' doesn't exist mysql> insert into t2 values (3); Query OK, 1 row affected (0.00 sec) mysql> rename table t2 to t3; ERROR 1017 (HY000): Can't find file: './test/t2.frm' (errno: 2) mysql> alter table t2 rename to t3; Query OK, 1 row affected (0.00 sec) Records: 1 Duplicates: 0 Warnings: 0 mysql> rename table t3 to t2; ERROR 1017 (HY000): Can't find file: './test/t3.frm' (errno: 2)
[14 Oct 2008 7:57]
Konstantin Osipov
Omer, when you discuss this bug, take a look at WL#934 Temporary Tables In The Standard Way. We don't have to do the entire worklog, but at the end of it Peter (and me) collected the full list of inconsistencies and feature requests against our temporary tables, in addition to this bug: Bug#15609 ALTER TEMPORARY TABLE Bug#20001 Support for temp-tables in INFORMATION_SCHEMA Bug#7742 You can't reinvoke the same Temporary Table more than once. Bug#30099 rename/drop database ignores temp tables