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