~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key.result

  • Committer: Vijay Samuel
  • Date: 2010-08-20 02:23:54 UTC
  • mfrom: (1720.1.4 build)
  • mto: (1726.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1727.
  • Revision ID: vijay@vijay-20100820022354-sxunltk8q3nb8ld2
Merge removed the drizzled/option.h include from client_priv.h and archive_reader.

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
  `t` text,
213
213
  UNIQUE KEY `c` (`c`(2)),
214
214
  UNIQUE KEY `t` (`t`(3))
215
 
) ENGINE=MyISAM
 
215
) ENGINE=MyISAM COLLATE = utf8_general_ci
216
216
insert t1 values ('cccc', 'tttt'),
217
217
(0xD0B1212223D0B1D0B1D0B1D0B1D0B1, 0xD0B1D0B1212223D0B1D0B1D0B1D0B1),
218
218
(0xD0B1222123D0B1D0B1D0B1D0B1D0B1, 0xD0B1D0B1222123D0B1D0B1D0B1D0B1);
311
311
  `i2` int NOT NULL,
312
312
  UNIQUE KEY `i1idx` (`i1`),
313
313
  UNIQUE KEY `i2idx` (`i2`)
314
 
) ENGINE=InnoDB
 
314
) ENGINE=InnoDB COLLATE = utf8_general_ci
315
315
drop table t1;
316
316
create temporary table t1 (
317
317
c1 int,
337
337
  `a` varchar(10) DEFAULT NULL,
338
338
  `b` varchar(10) DEFAULT NULL,
339
339
  KEY `a` (`a`,`b`)
340
 
) ENGINE=InnoDB
 
340
) ENGINE=InnoDB COLLATE = utf8_general_ci
341
341
alter table t1 modify b varchar(20);
342
342
show create table t1;
343
343
Table   Create Table
345
345
  `a` varchar(10) DEFAULT NULL,
346
346
  `b` varchar(20) DEFAULT NULL,
347
347
  KEY `a` (`a`,`b`)
348
 
) ENGINE=InnoDB
 
348
) ENGINE=InnoDB COLLATE = utf8_general_ci
349
349
alter table t1 modify a varchar(20);
350
350
show create table t1;
351
351
Table   Create Table
353
353
  `a` varchar(20) DEFAULT NULL,
354
354
  `b` varchar(20) DEFAULT NULL,
355
355
  KEY `a` (`a`,`b`)
356
 
) ENGINE=InnoDB
 
356
) ENGINE=InnoDB COLLATE = utf8_general_ci
357
357
drop table t1;
358
358
create table t1 (a int not null primary key, b varchar(20) not null unique);
359
359
desc t1;
408
408
  KEY `i3` (`c3`),
409
409
  KEY `i5` (`c1`,`c2`,`c3`,`c4`),
410
410
  KEY `c2` (`c2`,`c4`)
411
 
) ENGINE=InnoDB
 
411
) ENGINE=InnoDB COLLATE = utf8_general_ci
412
412
alter table t1 drop index c1;
413
413
alter table t1 add index (c1);
414
414
alter table t1 add index (c1);
441
441
  KEY `i2` (`c2`),
442
442
  KEY `i4` (`c4`),
443
443
  KEY `c2` (`c2`(4),`c3`(7))
444
 
) ENGINE=InnoDB
 
444
) ENGINE=InnoDB COLLATE = utf8_general_ci
445
445
insert into t1 values(1, 'a', 'a', NULL);
446
446
insert into t1 values(1, 'b', 'b', NULL);
447
447
alter table t1 drop index i3, drop index i2, drop index i1;
506
506
  UNIQUE KEY `cc` (`c`),
507
507
  UNIQUE KEY `bb` (`b`(1)),
508
508
  KEY `aa` (`a`)
509
 
) ENGINE=InnoDB
 
509
) ENGINE=InnoDB COLLATE = utf8_general_ci
510
510
drop table t1;
511
511
create table t1(a int not null, key aa(a), 
512
512
b char(10) not null, unique key bb(b(1)),
531
531
  UNIQUE KEY `cc` (`c`),
532
532
  UNIQUE KEY `bb` (`b`(1)),
533
533
  KEY `aa` (`a`)
534
 
) ENGINE=InnoDB
 
534
) ENGINE=InnoDB COLLATE = utf8_general_ci
535
535
drop table t1;
536
536
End of 5.0 tests
537
537
DROP TABLE IF EXISTS t1;