~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/frm.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-21 01:02:23 UTC
  • mto: (960.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: osullivan.padraig@gmail.com-20090321010223-j8cph7eeyt1u3xol
Fixed function object to ensure it correctly returns a boolean type since
memcmp returns an integer. Added some more comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Random crappy tests that are frm related. Stewart should check these out
 
3
#
 
4
 
 
5
 
 
6
# Test for BUG#93: 4.1 protocl crash on corupted frm and SHOW TABLE STATUS
 
7
 
 
8
flush tables;
 
9
 
 
10
# Create a junk frm file on disk
 
11
system echo "this is a junk file for test" >> $MYSQLTEST_VARDIR/master-data/test/t1.frm ;
 
12
system echo "this is a junk file for test" >> $MYSQLTEST_VARDIR/master-data/test/t1.dfe ;
 
13
--replace_column 6 # 7 # 8 # 9 #
 
14
SHOW TABLE STATUS like 't1';
 
15
--error 1033
 
16
show create table t1;
 
17
--error 1051
 
18
drop table if exists t1;
 
19
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.frm
 
20
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.dfe
 
21
 
 
22
#end bug 93