ndb_dd_ddl.result 5.26 KB
Newer Older
1
DROP TABLE IF EXISTS t1;
unknown's avatar
unknown committed
2 3
DROP DATABASE IF EXISTS mysqltest;
CREATE DATABASE mysqltest;
4 5 6
**** Begin Duplicate Statement Testing ****
CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
unknown's avatar
unknown committed
7
INITIAL_SIZE 1M
8 9
UNDO_BUFFER_SIZE = 1M
ENGINE=NDB;
unknown's avatar
unknown committed
10 11
CREATE LOGFILE GROUP lg2
ADD UNDOFILE 'undofile2.dat'
unknown's avatar
unknown committed
12
INITIAL_SIZE 1M
unknown's avatar
unknown committed
13 14 15 16 17 18
UNDO_BUFFER_SIZE 1M
ENGINE NDB;
ERROR HY000: Failed to create LOGFILE GROUP
SHOW WARNINGS;
Level	Code	Message
Error	1296	Got error 1514 'Currently there is a limit of one logfile group' from NDB
unknown's avatar
unknown committed
19
Error	1515	Failed to create LOGFILE GROUP
20 21
CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
unknown's avatar
unknown committed
22
INITIAL_SIZE 1M
23 24 25 26 27
UNDO_BUFFER_SIZE = 1M
ENGINE=NDB;
ERROR HY000: Failed to create LOGFILE GROUP
ALTER LOGFILE GROUP lg1
ADD UNDOFILE 'undofile02.dat'
unknown's avatar
unknown committed
28
INITIAL_SIZE 1M ENGINE NDB;
29 30
ALTER LOGFILE GROUP lg1
ADD UNDOFILE 'undofile02.dat'
unknown's avatar
unknown committed
31
INITIAL_SIZE 1M ENGINE=NDB;
32 33 34 35
ERROR HY000: Failed to alter: CREATE UNDOFILE
CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
unknown's avatar
unknown committed
36
INITIAL_SIZE 1M
37 38 39 40
ENGINE NDB;
CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
unknown's avatar
unknown committed
41
INITIAL_SIZE 1M
42 43 44 45
ENGINE NDB;
ERROR HY000: Failed to create TABLESPACE
ALTER TABLESPACE ts1
ADD DATAFILE 'datafile2.dat'
unknown's avatar
unknown committed
46
INITIAL_SIZE 1M
47 48 49
ENGINE=NDB;
ALTER TABLESPACE ts1
ADD DATAFILE 'datafile2.dat'
unknown's avatar
unknown committed
50
INITIAL_SIZE 1M
51 52
ENGINE=NDB;
ERROR HY000: Failed to alter:  CREATE DATAFILE
unknown's avatar
unknown committed
53 54 55 56 57 58 59 60
CREATE TABLE mysqltest.t1
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
TABLESPACE ts1 STORAGE DISK
ENGINE=NDB;
CREATE TABLE mysqltest.t1
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
TABLESPACE ts1 STORAGE DISK
ENGINE=NDB;
61
ERROR 42S01: Table 't1' already exists
unknown's avatar
unknown committed
62 63 64 65 66
CREATE TABLE mysqltest.t1
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
ENGINE=NDB;
ERROR 42S01: Table 't1' already exists
DROP TABLE mysqltest.t1;
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile2.dat' 
ENGINE=NDB;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile2.dat' 
ENGINE=NDB;
ERROR HY000: Failed to alter:  NO SUCH FILE
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat' 
ENGINE=NDB;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat' 
ENGINE=NDB;
ERROR HY000: Failed to alter:  NO SUCH FILE
DROP TABLESPACE ts1 
ENGINE=NDB;
DROP TABLESPACE ts1 
ENGINE=NDB;
ERROR HY000: Failed to drop TABLESPACE
DROP LOGFILE GROUP lg1 
ENGINE=NDB;
DROP LOGFILE GROUP lg1 
ENGINE=NDB;
ERROR HY000: Failed to drop LOGFILE GROUP
unknown's avatar
unknown committed
91
DROP DATABASE IF EXISTS mysqltest;
92 93 94 95 96
**** End Duplicate Statement Testing ****

**** Begin Statment CaSe Testing ****
creaTE LOgfilE GrOuP lg1
adD undoFILE 'undofile.dat'
unknown's avatar
unknown committed
97
initiAL_siZE 1M
98 99 100
UnDo_BuFfEr_SiZe = 1M
ENGInE=NDb;
altER LOgFiLE GrOUp lg1
unknown's avatar
unknown committed
101
AdD UnDOfILe 'uNdOfiLe02.daT'
unknown's avatar
unknown committed
102
INItIAl_SIzE 1M ENgINE nDB;
103 104 105
CrEAtE TABLEspaCE ts1
ADD DATAfilE 'datafile.dat'
UsE LoGFiLE GRoUP lg1
unknown's avatar
unknown committed
106
INITiaL_SizE 1M
107 108
ENGiNe NDb;
AlTeR tAbLeSpAcE ts1
unknown's avatar
unknown committed
109
AdD DaTaFiLe 'dAtAfiLe2.daT'
unknown's avatar
unknown committed
110
InItIaL_SiZe 1M
111 112 113 114 115 116 117
EnGiNe=NDB;
CREATE TABLE t1
(pk1 int not null primary key, b int not null, c int not null)
TABLEspace ts1 storAGE dISk
ENGine nDb;
DROP TABLE t1;
AlteR TAblespaCE ts1
unknown's avatar
unknown committed
118
droP DATAfile 'dAtAfiLe2.daT' 
119 120 121 122 123 124 125 126 127 128 129 130 131
ENGINE=NDB;
ALter tablesPACE ts1
dROp dAtAfIlE 'datafile.dat' 
ENGine=Ndb;
DrOp TaBleSpAcE ts1 
engINE=ndB;
DrOp lOgFiLe GrOuP lg1 
EnGiNe=nDb;
**** End Statment CaSe Testing ****

**** Begin = And No = Testing ****
CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
unknown's avatar
unknown committed
132
INITIAL_SIZE=1M
133 134 135 136
UNDO_BUFFER_SIZE=1M
ENGINE=NDB;
ALTER LOGFILE GROUP lg1
ADD UNDOFILE 'undofile02.dat'
unknown's avatar
unknown committed
137
INITIAL_SIZE=1M 
138 139 140 141
ENGINE=NDB;
CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
unknown's avatar
unknown committed
142
INITIAL_SIZE=1M
143 144 145
ENGINE=NDB;
ALTER TABLESPACE ts1
ADD DATAFILE 'datafile2.dat'
unknown's avatar
unknown committed
146
INITIAL_SIZE=1M
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
ENGINE=NDB;
CREATE TABLE t1
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
TABLESPACE ts1 STORAGE DISK
ENGINE=NDB;
DROP TABLE t1;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile2.dat'
ENGINE=NDB;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat'
ENGINE=NDB;
DROP TABLESPACE ts1
ENGINE=NDB;
DROP LOGFILE GROUP lg1
ENGINE=NDB;

**** End of = ****

CREATE LOGFILE GROUP lg1
ADD UNDOFILE 'undofile.dat'
unknown's avatar
unknown committed
168
INITIAL_SIZE 1M
169 170 171 172
UNDO_BUFFER_SIZE 1M
ENGINE NDB;
ALTER LOGFILE GROUP lg1
ADD UNDOFILE 'undofile02.dat'
unknown's avatar
unknown committed
173
INITIAL_SIZE 1M
174 175 176 177
ENGINE NDB;
CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'
USE LOGFILE GROUP lg1
unknown's avatar
unknown committed
178
INITIAL_SIZE 1M
179 180 181
ENGINE NDB;
ALTER TABLESPACE ts1
ADD DATAFILE 'datafile2.dat'
unknown's avatar
unknown committed
182
INITIAL_SIZE 1M
183 184 185 186 187
ENGINE NDB;
CREATE TABLE t1
(pk1 INT NOT NULL PRIMARY KEY, b INT NOT NULL, c INT NOT NULL)
TABLESPACE ts1 STORAGE DISK
ENGINE NDB;
188 189
CREATE INDEX b_i on t1(b);
CREATE INDEX bc_i on t1(b, c);
190 191 192 193 194 195 196 197 198 199 200 201
DROP TABLE t1;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile2.dat'
ENGINE NDB;
ALTER TABLESPACE ts1
DROP DATAFILE 'datafile.dat'
ENGINE NDB;
DROP TABLESPACE ts1
ENGINE NDB;
DROP LOGFILE GROUP lg1
ENGINE NDB;
**** End = And No =  ****
unknown's avatar
unknown committed
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
create table t1 (a int primary key) engine = myisam;
create logfile group lg1 add undofile '/home/jonas/src/51-work/mysql-test/var/master-data/test/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;;
ERROR HY000: Failed to create UNDOFILE
create logfile group lg1
add undofile 'undofile.dat'
initial_size 1M
undo_buffer_size = 1M
engine=ndb;
create tablespace ts1 add datafile '/home/jonas/src/51-work/mysql-test/var/master-data/test/t1.frm' use logfile group lg1 initial_size 1M engine ndb;;
ERROR HY000: Failed to create DATAFILE
drop tablespace ts1
engine ndb;
ERROR HY000: Failed to drop TABLESPACE
drop logfile group lg1
engine ndb;
drop table t1;