summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/wrapper/r/create_table_TODO_SPLIT_ME.result
blob: b3814331038a212f9ce30164ec60f8d545fe4408 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
drop table if exists t1, t2, t3;
create table t1 (c1 int primary key) COMMENT = 'engine "innodb"';
create table t2 (c1 int primary key) COMMENT = 'engine "innodb"';
create table t3 (c1 int primary key) COMMENT = 'engine "innodb"';
drop table t1,t2,t3;
create table t1 (c1 int primary key, c2 int, c3 int) COMMENT = 'engine "innodb"';
drop table t1;
create table t1 (c1 bit primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	bit(1)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 tinyint primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	tinyint(4)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 smallint primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	smallint(6)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 mediumint primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	mediumint(9)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 int primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	int(11)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 bigint primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	bigint(20)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 double primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	double	NO	PRI	NULL	
drop table t1;
create table t1 (c1 float primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	float	NO	PRI	NULL	
drop table t1;
create table t1 (c1 decimal primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	decimal(10,0)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 date primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	date	NO	PRI	NULL	
drop table t1;
create table t1 (c1 time primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	time	NO	PRI	NULL	
drop table t1;
create table t1 (c1 timestamp primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	timestamp	NO	PRI	CURRENT_TIMESTAMP	on update CURRENT_TIMESTAMP
drop table t1;
create table t1 (c1 datetime primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	datetime	NO	PRI	NULL	
drop table t1;
create table t1 (c1 year primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	year(4)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 char(10) primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	char(10)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 varchar(10) primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	varchar(10)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 binary(10) primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	binary(10)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 varbinary(10) primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	varbinary(10)	NO	PRI	NULL	
drop table t1;
create table t1 (c1 enum("yes","no") primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	enum('yes','no')	NO	PRI	NULL	
drop table t1;
create table t1 (c1 set("A","B","AB","O") primary key) COMMENT = 'engine "innodb"';
desc t1;
Field	Type	Null	Key	Default	Extra
c1	set('A','B','AB','O')	NO	PRI	NULL	
drop table t1;
create table t1 (c1 int) COMMENT = 'engine "innodb"';
ERROR 42000: This table type requires a primary key