~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/key.test

Updated pandora-build files to version 0.133

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
#
184
184
 
185
185
CREATE TABLE t1 (c VARCHAR(10) NOT NULL,i INT PRIMARY KEY NOT NULL AUTO_INCREMENT, UNIQUE (c,i));
186
 
--error ER_BAD_NULL_ERROR
 
186
--error 1048
187
187
INSERT INTO t1 (c) VALUES (NULL),(NULL);
188
188
SELECT * FROM t1;
189
189
INSERT INTO t1 (c) VALUES ('a'),('a');
286
286
# create dedicated error code for this and
287
287
# and change my_printf_error() to my_error
288
288
 
289
 
--error ER_KEY_PART_0
 
289
--error 1391
290
290
create table t1 (c char(10), index (c(0)));
291
291
 
292
292
#
293
293
# Bug #6126: Duplicate columns in keys should fail
294
294
# Bug #6252: (dup)
295
295
#
296
 
--error ER_DUP_FIELDNAME
 
296
--error 1060
297
297
create table t1 (c char(10), index (c,c));
298
 
--error ER_DUP_FIELDNAME
 
298
--error 1060
299
299
create table t1 (c1 char(10), c2 char(10), index (c1,c2,c1));
300
 
--error ER_DUP_FIELDNAME
 
300
--error 1060
301
301
create table t1 (c1 char(10), c2 char(10), index (c1,c1,c2));
302
 
--error ER_DUP_FIELDNAME
 
302
--error 1060
303
303
create table t1 (c1 char(10), c2 char(10), index (c2,c1,c1));
304
304
create table t1 (c1 char(10), c2 char(10));
305
 
--error ER_DUP_FIELDNAME
 
305
--error 1060
306
306
alter table t1 add key (c1,c1);
307
 
--error ER_DUP_FIELDNAME
 
307
--error 1060
308
308
alter table t1 add key (c2,c1,c1);
309
 
--error ER_DUP_FIELDNAME
 
309
--error 1060
310
310
alter table t1 add key (c1,c2,c1);
311
 
--error ER_DUP_FIELDNAME
 
311
--error 1060
312
312
alter table t1 add key (c1,c1,c2);
313
313
drop table t1;
314
314
 
416
416
alter table t1 add primary key (c1, c2), drop primary key;
417
417
alter table t1 drop primary key;
418
418
# Drop is checked first. Primary key must exist.
419
 
--error ER_CANT_DROP_FIELD_OR_KEY
 
419
--error 1091
420
420
alter table t1 add primary key (c1, c2), drop primary key;
421
421
show create table t1;
422
422
# Insert non-unique values.