~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

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
let $MYSQLD_DATADIR= `select @@datadir`;
 
33
remove_file $MYSQLD_DATADIR/test/t1.frm;
 
34
--echo "We get an error because the table is in the definition cache"
 
35
--error ER_TABLE_EXISTS_ERROR
 
36
create table t1(a int, b int);
 
37
--echo "Flush the cache and recreate the table anew to be able to drop it"
 
38
flush tables;
 
39
show open tables like "t%";
 
40
create table t1(a int, b int, c int);
 
41
--echo "Try to select from the table. This should not crash the server"
 
42
select count(a) from t1;
 
43
drop table t1;