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

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/r/ndb_dd_ddl.result

  • 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
DROP TABLE IF EXISTS t1;
 
2
DROP DATABASE IF EXISTS mysqltest;
 
3
CREATE DATABASE mysqltest;
 
4
**** Begin Duplicate Statement Testing ****
 
5
CREATE LOGFILE GROUP lg1
 
6
ADD UNDOFILE 'undofile.dat'
 
7
INITIAL_SIZE 1M
 
8
UNDO_BUFFER_SIZE = 1M
 
9
ENGINE=NDB;
 
10
CREATE LOGFILE GROUP lg2
 
11
ADD UNDOFILE 'undofile2.dat'
 
12
INITIAL_SIZE 1M
 
13
UNDO_BUFFER_SIZE 1M
 
14
ENGINE NDB;
 
15
ERROR HY000: Failed to create LOGFILE GROUP
 
16
SHOW WARNINGS;
 
17
Level   Code    Message
 
18
Warning 1296    Got error 1514 'Currently there is a limit of one logfile group' from NDB
 
19
Error   1528    Failed to create LOGFILE GROUP
 
20
CREATE LOGFILE GROUP lg1
 
21
ADD UNDOFILE 'undofile.dat'
 
22
INITIAL_SIZE 1M
 
23
UNDO_BUFFER_SIZE = 1M
 
24
ENGINE=NDB;
 
25
ERROR HY000: Failed to create LOGFILE GROUP
 
26
ALTER LOGFILE GROUP lg1
 
27
ADD UNDOFILE 'undofile02.dat'
 
28
INITIAL_SIZE 1M ENGINE NDB;
 
29
ALTER LOGFILE GROUP lg1
 
30
ADD UNDOFILE 'undofile02.dat'
 
31
INITIAL_SIZE 1M ENGINE=NDB;
 
32
ERROR HY000: Failed to alter: CREATE UNDOFILE
 
33
CREATE TABLESPACE ts1
 
34
ADD DATAFILE 'datafile.dat'
 
35
USE LOGFILE GROUP lg1
 
36
INITIAL_SIZE 1M
 
37
ENGINE NDB;
 
38
CREATE TABLESPACE ts1
 
39
ADD DATAFILE 'datafile.dat'
 
40
USE LOGFILE GROUP lg1
 
41
INITIAL_SIZE 1M
 
42
ENGINE NDB;
 
43
ERROR HY000: Failed to create TABLESPACE
 
44
ALTER TABLESPACE ts1
 
45
ADD DATAFILE 'datafile2.dat'
 
46
INITIAL_SIZE 1M
 
47
ENGINE=NDB;
 
48
ALTER TABLESPACE ts1
 
49
ADD DATAFILE 'datafile2.dat'
 
50
INITIAL_SIZE 1M
 
51
ENGINE=NDB;
 
52
ERROR HY000: Failed to alter:  CREATE DATAFILE
 
53
CREATE TABLE mysqltest.t1
 
54
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
 
55
TABLESPACE ts1 STORAGE DISK
 
56
ENGINE=NDB;
 
57
CREATE TABLE mysqltest.t1
 
58
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
 
59
TABLESPACE ts1 STORAGE DISK
 
60
ENGINE=NDB;
 
61
ERROR 42S01: Table 't1' already exists
 
62
CREATE TABLE mysqltest.t1
 
63
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
 
64
ENGINE=NDB;
 
65
ERROR 42S01: Table 't1' already exists
 
66
DROP TABLE mysqltest.t1;
 
67
ALTER TABLESPACE ts1
 
68
DROP DATAFILE 'datafile2.dat' 
 
69
ENGINE=NDB;
 
70
ALTER TABLESPACE ts1
 
71
DROP DATAFILE 'datafile2.dat' 
 
72
ENGINE=NDB;
 
73
ERROR HY000: Failed to alter:  NO SUCH FILE
 
74
ALTER TABLESPACE ts1
 
75
DROP DATAFILE 'datafile.dat' 
 
76
ENGINE=NDB;
 
77
ALTER TABLESPACE ts1
 
78
DROP DATAFILE 'datafile.dat' 
 
79
ENGINE=NDB;
 
80
ERROR HY000: Failed to alter:  NO SUCH FILE
 
81
DROP TABLESPACE ts1 
 
82
ENGINE=NDB;
 
83
DROP TABLESPACE ts1 
 
84
ENGINE=NDB;
 
85
ERROR HY000: Failed to drop TABLESPACE
 
86
DROP LOGFILE GROUP lg1 
 
87
ENGINE=NDB;
 
88
DROP LOGFILE GROUP lg1 
 
89
ENGINE=NDB;
 
90
ERROR HY000: Failed to drop LOGFILE GROUP
 
91
DROP DATABASE IF EXISTS mysqltest;
 
92
**** End Duplicate Statement Testing ****
 
93
 
 
94
**** Begin Statment CaSe Testing ****
 
95
creaTE LOgfilE GrOuP lg1
 
96
adD undoFILE 'undofile.dat'
 
97
initiAL_siZE 1M
 
98
UnDo_BuFfEr_SiZe = 1M
 
99
ENGInE=NDb;
 
100
altER LOgFiLE GrOUp lg1
 
101
AdD UnDOfILe 'uNdOfiLe02.daT'
 
102
INItIAl_SIzE 1M ENgINE nDB;
 
103
CrEAtE TABLEspaCE ts1
 
104
ADD DATAfilE 'datafile.dat'
 
105
UsE LoGFiLE GRoUP lg1
 
106
INITiaL_SizE 1M
 
107
ENGiNe NDb;
 
108
AlTeR tAbLeSpAcE ts1
 
109
AdD DaTaFiLe 'dAtAfiLe2.daT'
 
110
InItIaL_SiZe 1M
 
111
EnGiNe=NDB;
 
112
CREATE TABLE t1
 
113
(pk1 int not null primary key, b int not null, c int not null)
 
114
TABLEspace ts1 storAGE dISk
 
115
ENGine nDb;
 
116
DROP TABLE t1;
 
117
AlteR TAblespaCE ts1
 
118
droP DATAfile 'dAtAfiLe2.daT' 
 
119
ENGINE=NDB;
 
120
ALter tablesPACE ts1
 
121
dROp dAtAfIlE 'datafile.dat' 
 
122
ENGine=Ndb;
 
123
DrOp TaBleSpAcE ts1 
 
124
engINE=ndB;
 
125
DrOp lOgFiLe GrOuP lg1 
 
126
EnGiNe=nDb;
 
127
**** End Statment CaSe Testing ****
 
128
 
 
129
**** Begin = And No = Testing ****
 
130
CREATE LOGFILE GROUP lg1
 
131
ADD UNDOFILE 'undofile.dat'
 
132
INITIAL_SIZE=1M
 
133
UNDO_BUFFER_SIZE=1M
 
134
ENGINE=NDB;
 
135
ALTER LOGFILE GROUP lg1
 
136
ADD UNDOFILE 'undofile02.dat'
 
137
INITIAL_SIZE=1M 
 
138
ENGINE=NDB;
 
139
CREATE TABLESPACE ts1
 
140
ADD DATAFILE 'datafile.dat'
 
141
USE LOGFILE GROUP lg1
 
142
INITIAL_SIZE=1M
 
143
ENGINE=NDB;
 
144
ALTER TABLESPACE ts1
 
145
ADD DATAFILE 'datafile2.dat'
 
146
INITIAL_SIZE=1M
 
147
ENGINE=NDB;
 
148
CREATE TABLE t1
 
149
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
 
150
TABLESPACE ts1 STORAGE DISK
 
151
ENGINE=NDB;
 
152
DROP TABLE t1;
 
153
ALTER TABLESPACE ts1
 
154
DROP DATAFILE 'datafile2.dat'
 
155
ENGINE=NDB;
 
156
ALTER TABLESPACE ts1
 
157
DROP DATAFILE 'datafile.dat'
 
158
ENGINE=NDB;
 
159
DROP TABLESPACE ts1
 
160
ENGINE=NDB;
 
161
DROP LOGFILE GROUP lg1
 
162
ENGINE=NDB;
 
163
 
 
164
**** End of = ****
 
165
 
 
166
CREATE LOGFILE GROUP lg1
 
167
ADD UNDOFILE 'undofile.dat'
 
168
INITIAL_SIZE 1M
 
169
UNDO_BUFFER_SIZE 1M
 
170
ENGINE NDB;
 
171
ALTER LOGFILE GROUP lg1
 
172
ADD UNDOFILE 'undofile02.dat'
 
173
INITIAL_SIZE 1M
 
174
ENGINE NDB;
 
175
CREATE TABLESPACE ts1
 
176
ADD DATAFILE 'datafile.dat'
 
177
USE LOGFILE GROUP lg1
 
178
INITIAL_SIZE 1M
 
179
ENGINE NDB;
 
180
ALTER TABLESPACE ts1
 
181
ADD DATAFILE 'datafile2.dat'
 
182
INITIAL_SIZE 1M
 
183
ENGINE NDB;
 
184
CREATE TABLE t1
 
185
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
 
186
TABLESPACE ts1 STORAGE MEMORY
 
187
ENGINE NDB;
 
188
ALTER TABLE t1 STORAGE DISK;
 
189
CREATE INDEX b_i on t1(b);
 
190
CREATE INDEX bc_i on t1(b, c);
 
191
DROP TABLE t1;
 
192
CREATE TABLESPACE ts2
 
193
ADD DATAFILE 'datafile3.dat'
 
194
USE LOGFILE GROUP lg1
 
195
INITIAL_SIZE 1M
 
196
ENGINE NDB;
 
197
ALTER TABLESPACE ts1
 
198
DROP DATAFILE 'datafile3.dat'
 
199
ENGINE NDB;
 
200
ERROR HY000: Failed to alter:  NO SUCH FILE
 
201
ALTER TABLESPACE ts2
 
202
DROP DATAFILE 'datafile2.dat'
 
203
ENGINE NDB;
 
204
ERROR HY000: Failed to alter:  NO SUCH FILE
 
205
ALTER TABLESPACE ts1
 
206
DROP DATAFILE 'datafile2.dat'
 
207
ENGINE NDB;
 
208
ALTER TABLESPACE ts1
 
209
DROP DATAFILE 'datafile.dat'
 
210
ENGINE NDB;
 
211
DROP TABLESPACE ts1
 
212
ENGINE NDB;
 
213
ALTER TABLESPACE ts2
 
214
DROP DATAFILE 'datafile3.dat'
 
215
ENGINE NDB;
 
216
DROP TABLESPACE ts2
 
217
ENGINE NDB;
 
218
DROP LOGFILE GROUP lg1
 
219
ENGINE NDB;
 
220
**** End = And No =  ****
 
221
create logfile group lg1 add undofile 'MYSQLTEST_VARDIR/tmp/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;;
 
222
ERROR HY000: Failed to create UNDOFILE
 
223
create logfile group lg1
 
224
add undofile 'undofile.dat'
 
225
initial_size 1M
 
226
undo_buffer_size = 1M
 
227
engine=ndb;
 
228
create tablespace ts1 add datafile 'MYSQLTEST_VARDIR/tmp/t1.frm' use logfile group lg1 initial_size 1M engine ndb;;
 
229
ERROR HY000: Failed to create DATAFILE
 
230
drop tablespace ts1
 
231
engine ndb;
 
232
ERROR HY000: Failed to drop TABLESPACE
 
233
drop logfile group lg1
 
234
engine ndb;