File: innodb_bug51378.result

package info (click to toggle)
mariadb-10.0 10.0.32-0%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 476,064 kB
  • sloc: cpp: 1,400,131; ansic: 832,140; perl: 54,391; sh: 41,304; pascal: 32,365; yacc: 14,921; xml: 5,257; sql: 4,667; cs: 4,647; makefile: 4,555; ruby: 4,465; python: 2,292; lex: 1,427; java: 941; asm: 295; awk: 54; php: 22; sed: 16
file content (68 lines) | stat: -rw-r--r-- 2,207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
create table bug51378 (
col1 int not null,
col2 blob not null,
col3 time not null) engine = innodb;
create unique index idx on bug51378(col1, col2(31));
alter table bug51378 add unique index idx2(col1, col2(31));
Warnings:
Note	1831	Duplicate index `idx2`. This is deprecated and will be disallowed in a future release.
create unique index idx3 on bug51378(col1, col3);
SHOW CREATE TABLE bug51378;
Table	Create Table
bug51378	CREATE TABLE `bug51378` (
  `col1` int(11) NOT NULL,
  `col2` blob NOT NULL,
  `col3` time NOT NULL,
  UNIQUE KEY `idx3` (`col1`,`col3`),
  UNIQUE KEY `idx` (`col1`,`col2`(31)),
  UNIQUE KEY `idx2` (`col1`,`col2`(31))
) ENGINE=InnoDB DEFAULT CHARSET=latin1
drop index idx3 on bug51378;
SHOW CREATE TABLE bug51378;
Table	Create Table
bug51378	CREATE TABLE `bug51378` (
  `col1` int(11) NOT NULL,
  `col2` blob NOT NULL,
  `col3` time NOT NULL,
  UNIQUE KEY `idx` (`col1`,`col2`(31)),
  UNIQUE KEY `idx2` (`col1`,`col2`(31))
) ENGINE=InnoDB DEFAULT CHARSET=latin1
alter table bug51378 add primary key idx3(col1, col2(31));
SHOW CREATE TABLE bug51378;
Table	Create Table
bug51378	CREATE TABLE `bug51378` (
  `col1` int(11) NOT NULL,
  `col2` blob NOT NULL,
  `col3` time NOT NULL,
  PRIMARY KEY (`col1`,`col2`(31)),
  UNIQUE KEY `idx` (`col1`,`col2`(31)),
  UNIQUE KEY `idx2` (`col1`,`col2`(31))
) ENGINE=InnoDB DEFAULT CHARSET=latin1
drop table bug51378;
create table bug51378 (
col1 int not null,
col2 blob not null,
col3 time not null, primary key(col1, col2(31))) engine = innodb;
create unique index idx on bug51378(col1, col2(31));
SHOW CREATE TABLE bug51378;
Table	Create Table
bug51378	CREATE TABLE `bug51378` (
  `col1` int(11) NOT NULL,
  `col2` blob NOT NULL,
  `col3` time NOT NULL,
  PRIMARY KEY (`col1`,`col2`(31)),
  UNIQUE KEY `idx` (`col1`,`col2`(31))
) ENGINE=InnoDB DEFAULT CHARSET=latin1
drop table bug51378;
create table bug51378 (
col1 int not null,
col2 int ) engine = innodb;
create unique index idx on bug51378(col1, col2);
SHOW CREATE TABLE bug51378;
Table	Create Table
bug51378	CREATE TABLE `bug51378` (
  `col1` int(11) NOT NULL,
  `col2` int(11) DEFAULT NULL,
  UNIQUE KEY `idx` (`col1`,`col2`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
drop table bug51378;