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