~drizzle-trunk/drizzle/development

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
34
35
36
37
38
39
40
41
42
#
# Bug#19479:mysqldump creates invalid dump
#
--disable_warnings
drop table if exists `about:text`;
--enable_warnings
create 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`; 
drop table `about:text`;


# End of 5.0 tests

#
# Bug#16532:mysql server assert in debug if table det is removed
#
use test;
--disable_warnings
drop table if exists t1;
--enable_warnings
create table break_frm(a int) engine=myisam;
insert into break_frm values(1);
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.frm
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.dfe
--echo "We get an error because the table is in the definition cache"
--error ER_TABLE_EXISTS_ERROR
create table break_frm(a int, b int);
--echo "Flush the cache and recreate the table anew to be able to drop it"
flush tables;
show open tables like "break_frm%";
create table break_frm(a int, b int, c int);
--echo "Try to select from the table. This should not crash the server"
select count(a) from break_frm;
drop table break_frm;
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.*
create table break_frm(a int) engine=myisam;
drop table if exists break_frm;