~skinny.moey/drizzle/branch-rev

« back to all changes in this revision

Viewing changes to mysql-test/t/create_not_windows.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Non-windows specific create tests.
 
2
 
 
3
--source include/not_windows.inc
 
4
 
 
5
#
 
6
# Bug#19479:mysqldump creates invalid dump
 
7
#
 
8
--disable_warnings
 
9
drop table if exists `about:text`;
 
10
--enable_warnings
 
11
create table `about:text` ( 
 
12
_id int not null auto_increment,
 
13
`about:text` varchar(255) not null default '',
 
14
primary key (_id)
 
15
);
 
16
 
 
17
show create table `about:text`; 
 
18
drop table `about:text`;
 
19
 
 
20
 
 
21
# End of 5.0 tests
 
22
 
 
23
#
 
24
# Bug#16532:mysql server assert in debug if table det is removed
 
25
#
 
26
use test;
 
27
--disable_warnings
 
28
drop table if exists t1;
 
29
--enable_warnings
 
30
create table t1(a int) engine=myisam;
 
31
insert into t1 values(1);
 
32
--system rm -f $MYSQLTEST_VARDIR/master-data/test/t1.frm
 
33
--echo "We get an error because the table is in the definition cache"
 
34
--error ER_TABLE_EXISTS_ERROR
 
35
create table t1(a int, b int);
 
36
--echo "Flush the cache and recreate the table anew to be able to drop it"
 
37
flush tables;
 
38
show open tables like "t%";
 
39
create table t1(a int, b int, c int);
 
40
--echo "Try to select from the table. This should not crash the server"
 
41
select count(a) from t1;
 
42
drop table t1;