~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/create_not_windows.test

  • Committer: Monty Taylor
  • Date: 2008-12-24 18:32:38 UTC
  • mto: This revision was merged to the branch mainline in revision 751.
  • Revision ID: mordred@inaugust.com-20081224183238-elbjlh886wzsulw4
Fixed create_select_tmp test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
--disable_warnings
24
24
drop table if exists t1;
25
25
--enable_warnings
26
 
create table t1(a int) engine=myisam;
27
 
insert into t1 values(1);
28
 
--system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.frm
 
26
create table break_frm(a int) engine=myisam;
 
27
insert into break_frm values(1);
 
28
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.frm
29
29
--echo "We get an error because the table is in the definition cache"
30
30
--error ER_TABLE_EXISTS_ERROR
31
 
create table t1(a int, b int);
 
31
create table break_frm(a int, b int);
32
32
--echo "Flush the cache and recreate the table anew to be able to drop it"
33
33
flush tables;
34
 
show open tables like "t%";
35
 
create table t1(a int, b int, c int);
 
34
show open tables like "break_frm%";
 
35
create table break_frm(a int, b int, c int);
36
36
--echo "Try to select from the table. This should not crash the server"
37
 
select count(a) from t1;
38
 
drop table t1;
 
37
select count(a) from break_frm;
 
38
drop table break_frm;
 
39
--system rm -f $MYSQLTEST_VARDIR/master-data/test/break_frm.*
 
40
create table break_frm(a int) engine=myisam;
 
41
drop table if exists break_frm;