~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Random crappy tests that are frm related. Stewart should check these out
#


# Test for BUG#93: 4.1 protocl crash on corupted frm and SHOW TABLE STATUS

flush tables;

# Create a junk proto dfe file on disk
system echo "this is a junk file for test" >> $DRIZZLETEST_VARDIR/master-data/local/test/t1.dfe ;
--replace_column 6 # 7 # 8 # 9 #
SHOW TABLE STATUS like 't1';
--error ER_CORRUPT_TABLE_DEFINITION
show create table t1;
--error ER_CORRUPT_TABLE_DEFINITION,ER_BAD_TABLE_ERROR
drop table if exists t1;
system rm -f $DRIZZLETEST_VARDIR/master-data/local/test/t1.dfe;

#end bug 93