~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/symlink.result

  • Committer: Brian Aker
  • Date: 2009-08-24 19:19:39 UTC
  • mfrom: (1121.1.6 merge)
  • Revision ID: brian@gaz-20090824191939-xcn528r7gwjc48h3
Merge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1,t2,t7,t8,t9;
2
 
drop database if exists mysqltest;
3
 
create table t1 (a int not null auto_increment, b char(16) not null, primary key (a));
4
 
create table t2 (a int not null auto_increment, b char(16) not null, primary key (a));
5
 
insert into t1 (b) values ("test"),("test1"),("test2"),("test3");
6
 
insert into t2 (b) select b from t1;
7
 
insert into t1 (b) select b from t2;
8
 
insert into t2 (b) select b from t1;
9
 
insert into t1 (b) select b from t2;
10
 
insert into t2 (b) select b from t1;
11
 
insert into t1 (b) select b from t2;
12
 
insert into t2 (b) select b from t1;
13
 
insert into t1 (b) select b from t2;
14
 
insert into t2 (b) select b from t1;
15
 
insert into t1 (b) select b from t2;
16
 
insert into t2 (b) select b from t1;
17
 
insert into t1 (b) select b from t2;
18
 
insert into t2 (b) select b from t1;
19
 
insert into t1 (b) select b from t2;
20
 
insert into t2 (b) select b from t1;
21
 
insert into t1 (b) select b from t2;
22
 
insert into t2 (b) select b from t1;
23
 
insert into t1 (b) select b from t2;
24
 
drop table t2;
25
 
create temporary table t9 (a int not null auto_increment, b char(16) not null, primary key (a)) engine=myisam data directory="MYSQLTEST_VARDIR/tmp" index directory="MYSQLTEST_VARDIR/run";
26
 
insert into t9 select * from t1;
27
 
check table t9;
28
 
Table   Op      Msg_type        Msg_text
29
 
test.t9 check   status  OK
30
 
optimize table t9;
31
 
Table   Op      Msg_type        Msg_text
32
 
test.t9 optimize        status  OK
33
 
SET GLOBAL myisam_sort_buffer_size=1024;
34
 
check table t9;
35
 
Table   Op      Msg_type        Msg_text
36
 
test.t9 check   status  OK
37
 
alter table t9 add column c int not null;
38
 
show create table t9;
39
 
Table   Create Table
40
 
t9      CREATE TEMPORARY TABLE `t9` (
41
 
  `a` int NOT NULL AUTO_INCREMENT,
42
 
  `b` varchar(16) NOT NULL,
43
 
  `c` int NOT NULL,
44
 
  PRIMARY KEY (`a`)
45
 
) ENGINE=MyISAM
46
 
alter table t9 rename t8, add column d int not null;
47
 
alter table t8 rename t7;
48
 
alter table t7 rename t9;
49
 
drop table t1;
50
 
SHOW CREATE TABLE t9;
51
 
Table   Create Table
52
 
t9      CREATE TEMPORARY TABLE `t9` (
53
 
  `a` int NOT NULL AUTO_INCREMENT,
54
 
  `b` varchar(16) NOT NULL,
55
 
  `c` int NOT NULL,
56
 
  `d` int NOT NULL,
57
 
  PRIMARY KEY (`a`)
58
 
) ENGINE=MyISAM
59
 
create table t1 (a int not null auto_increment, b char(16) not null, primary key (a)) engine=myisam data directory="tmp";
60
 
Got one of the listed errors
61
 
create database mysqltest;
62
 
create temporary table mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a)) engine=myisam index directory="/this-dir-does-not-exist";
63
 
Got one of the listed errors
64
 
create temporary table mysqltest.t9 (a int not null auto_increment, b char(16) not null, primary key (a)) engine=myisam index directory="not-hard-path";
65
 
Got one of the listed errors
66
 
alter table t9 rename mysqltest.t9;
67
 
select count(*) from mysqltest.t9;
68
 
count(*)
69
 
16724
70
 
show create table mysqltest.t9;
71
 
Table   Create Table
72
 
t9      CREATE TEMPORARY TABLE `t9` (
73
 
  `a` int NOT NULL AUTO_INCREMENT,
74
 
  `b` varchar(16) NOT NULL,
75
 
  `c` int NOT NULL,
76
 
  `d` int NOT NULL,
77
 
  PRIMARY KEY (`a`)
78
 
) ENGINE=MyISAM
79
 
drop database mysqltest;
80
 
create temporary table t1 (a int not null) engine=myisam;
81
 
alter table t1 data directory="MYSQLTEST_VARDIR/tmp";
82
 
Warnings:
83
 
Warning 0       DATA DIRECTORY option ignored
84
 
show create table t1;
85
 
Table   Create Table
86
 
t1      CREATE TEMPORARY TABLE `t1` (
87
 
  `a` int NOT NULL
88
 
) ENGINE=MyISAM
89
 
alter table t1 add b int;
90
 
alter table t1 data directory="MYSQLTEST_VARDIR/log";
91
 
Warnings:
92
 
Warning 0       DATA DIRECTORY option ignored
93
 
show create table t1;
94
 
Table   Create Table
95
 
t1      CREATE TEMPORARY TABLE `t1` (
96
 
  `a` int NOT NULL,
97
 
  `b` int DEFAULT NULL
98
 
) ENGINE=MyISAM
99
 
alter table t1 index directory="MYSQLTEST_VARDIR/log";
100
 
Warnings:
101
 
Warning 0       INDEX DIRECTORY option ignored
102
 
show create table t1;
103
 
Table   Create Table
104
 
t1      CREATE TEMPORARY TABLE `t1` (
105
 
  `a` int NOT NULL,
106
 
  `b` int DEFAULT NULL
107
 
) ENGINE=MyISAM
108
 
drop table t1;
109
 
create temporary table t1 (a int) engine=myisam data directory="MYSQLTEST_VARDIR/log" select 9 a;
110
 
show create table t1;
111
 
Table   Create Table
112
 
t1      CREATE TEMPORARY TABLE `t1` (
113
 
  `a` int DEFAULT NULL
114
 
) ENGINE=MyISAM
115
 
create temporary table t1 (a int) engine=myisam data directory="MYSQLTEST_VARDIR/log" select 99 a;
116
 
show create table t1;
117
 
Table   Create Table
118
 
t1      CREATE TEMPORARY TABLE `t1` (
119
 
  `a` int DEFAULT NULL
120
 
) ENGINE=MyISAM
121
 
End of 4.1 tests
122
 
End of 5.0 tests
123
 
CREATE TABLE t1(a INT) engine=archive
124
 
DATA DIRECTORY='/foo/bar/far';
125
 
ERROR HY000: Can't create table 'test.t1' (errno: 9)
126
 
CREATE TABLE t1(a INT) DATA DIRECTORY='MYSQLTEST_VARDIR/tmp' INDEX DIRECTORY='MYSQLTEST_VARDIR/tmp';
127
 
ERROR HY000: Table storage engine 'InnoDB' does not support the create option 'DATA DIRECTORY'
128
 
End of 5.1 tests
129
 
SET GLOBAL myisam_sort_buffer_size=DEFAULT;