1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
drop table if exists `about:text`;
create TEMPORARY table `about:text` (
_id int not null auto_increment,
`about:text` varchar(255) not null default '',
primary key (_id)
) ENGINE=MyISAM;
show create table `about:text`;
Table Create Table
about:text CREATE TEMPORARY TABLE `about:text` (
`_id` int NOT NULL AUTO_INCREMENT,
`about:text` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`_id`)
) ENGINE=MyISAM
drop table `about:text`;
use test;
drop table if exists t1;
create TEMPORARY table break_frm(a int) engine=myisam;
insert into break_frm values(1);
"We get an error because the table is in the definition cache"
create TEMPORARY table break_frm(a int, b int);
ERROR 42S01: Table 'break_frm' already exists
"Flush the cache and recreate the table anew to be able to drop it"
flush tables;
show open tables like "break_frm%";
Database Table In_use Name_locked
create table break_frm(a int, b int, c int);
"Try to select from the table. This should not crash the server"
select count(a) from break_frm;
count(a)
1
drop table break_frm;
create TEMPORARY table break_frm(a int) engine=myisam;
drop table if exists break_frm;
|