26
26
test.t1 check status OK
27
27
show index from t1;
28
28
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
29
def information_schema statistics STATISTICS TABLE_NAME Table 8 256 2 N 1 0 45
30
def information_schema statistics STATISTICS NON_UNIQUE Non_unique 5 20 1 N 32769 0 63
31
def information_schema statistics STATISTICS INDEX_NAME Key_name 8 256 7 N 1 0 45
32
def information_schema statistics STATISTICS SEQ_IN_INDEX Seq_in_index 5 20 1 N 32769 0 63
33
def information_schema statistics STATISTICS COLUMN_NAME Column_name 8 256 1 N 1 0 45
34
def information_schema statistics STATISTICS COLLATION Collation 8 4 1 Y 0 0 45
35
def information_schema statistics STATISTICS CARDINALITY Cardinality 5 20 1 Y 32768 0 63
36
def information_schema statistics STATISTICS SUB_PART Sub_part 5 20 0 Y 32768 0 63
37
def information_schema statistics STATISTICS PACKED Packed 8 40 0 Y 0 0 45
38
def information_schema statistics STATISTICS NULLABLE Null 8 12 0 N 1 0 45
39
def information_schema statistics STATISTICS INDEX_TYPE Index_type 8 64 5 N 1 0 45
40
def information_schema statistics STATISTICS COMMENT Comment 8 64 0 Y 0 0 45
41
def information_schema statistics STATISTICS INDEX_COMMENT Index_Comment 8 4096 0 N 1 0 45
42
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
43
t1 0 PRIMARY 1 a A 5 NULL NULL BTREE
44
t1 1 b 1 b A 5 NULL NULL BTREE
45
t1 1 b 2 c A 5 NULL NULL BTREE
29
def data_dictionary show_indexes show_indexes Table Table 8 256 2 N 1 0 45
30
def data_dictionary show_indexes show_indexes Unique Unique 8 20 5 N 1 0 45
31
def data_dictionary show_indexes show_indexes Key_name Key_name 8 256 7 N 1 0 45
32
def data_dictionary show_indexes show_indexes Seq_in_index Seq_in_index 5 20 1 N 32769 0 63
33
def data_dictionary show_indexes show_indexes Column_name Column_name 8 256 1 N 1 0 45
34
Table Unique Key_name Seq_in_index Column_name
46
38
insert into t1 values (5,5,5);
47
39
ERROR 23000: Duplicate entry '5' for key 'PRIMARY'
48
40
-- Here we enable metadata just to check that the collation of the
56
48
-- after Bug#29394 is implemented.
57
49
show variables like "server_id%";
58
50
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
59
def information_schema variables VARIABLES VARIABLE_NAME Variable_name 8 256 9 N 1 0 45
60
def information_schema variables VARIABLES VARIABLE_VALUE Value 8 65200 1 Y 0 0 45
51
def data_dictionary session_variables SESSION_VARIABLES VARIABLE_NAME Variable_name 8 256 9 N 1 0 45
52
def data_dictionary session_variables SESSION_VARIABLES VARIABLE_VALUE Value 8 4096 1 N 1 0 45
61
53
Variable_name Value
63
55
show variables like "SERVER_id%";
64
56
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
65
def information_schema variables VARIABLES VARIABLE_NAME Variable_name 8 256 9 N 1 0 45
66
def information_schema variables VARIABLES VARIABLE_VALUE Value 8 65200 1 Y 0 0 45
57
def data_dictionary session_variables SESSION_VARIABLES VARIABLE_NAME Variable_name 8 256 9 N 1 0 45
58
def data_dictionary session_variables SESSION_VARIABLES VARIABLE_VALUE Value 8 4096 1 N 1 0 45
67
59
Variable_name Value
69
61
show variables like "this_doesn't_exists%";
70
62
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
71
def information_schema variables VARIABLES VARIABLE_NAME Variable_name 8 256 0 N 1 0 45
72
def information_schema variables VARIABLES VARIABLE_VALUE Value 8 65200 0 Y 0 0 45
63
def data_dictionary session_variables SESSION_VARIABLES VARIABLE_NAME Variable_name 8 256 0 N 1 0 45
64
def data_dictionary session_variables SESSION_VARIABLES VARIABLE_VALUE Value 8 4096 0 N 1 0 45
73
65
Variable_name Value
74
66
show table status from test like "this_doesn't_exists%";
75
67
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
76
def information_schema tables TABLES TABLE_NAME Name 8 256 0 N 1 0 45
77
def information_schema tables TABLES ENGINE Engine 8 256 0 Y 0 0 45
78
def information_schema tables TABLES VERSION Version 5 20 0 Y 32768 0 63
79
def information_schema tables TABLES ROW_FORMAT Row_format 8 40 0 Y 0 0 45
80
def information_schema tables TABLES TABLE_ROWS Rows 5 20 0 Y 32768 0 63
81
def information_schema tables TABLES AVG_ROW_LENGTH Avg_row_length 5 20 0 Y 32768 0 63
82
def information_schema tables TABLES DATA_LENGTH Data_length 5 20 0 Y 32768 0 63
83
def information_schema tables TABLES MAX_DATA_LENGTH Max_data_length 5 20 0 Y 32768 0 63
84
def information_schema tables TABLES INDEX_LENGTH Index_length 5 20 0 Y 32768 0 63
85
def information_schema tables TABLES DATA_FREE Data_free 5 20 0 Y 32768 0 63
86
def information_schema tables TABLES AUTO_INCREMENT Auto_increment 5 20 0 Y 32768 0 63
87
def information_schema tables TABLES CREATE_TIME Create_time 6 19 0 Y 128 0 63
88
def information_schema tables TABLES UPDATE_TIME Update_time 6 19 0 Y 128 0 63
89
def information_schema tables TABLES CHECK_TIME Check_time 6 19 0 Y 128 0 63
90
def information_schema tables TABLES TABLE_COLLATION Collation 8 256 0 Y 0 0 45
91
def information_schema tables TABLES CHECKSUM Checksum 5 20 0 Y 32768 0 63
92
def information_schema tables TABLES CREATE_OPTIONS Create_options 8 1020 0 Y 0 0 45
93
def information_schema tables TABLES TABLE_COMMENT Comment 8 8192 0 N 1 0 45
94
def information_schema tables TABLES PLUGIN_NAME Plugin_name 8 256 0 Y 0 0 45
95
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
68
def data_dictionary show_table_status SHOW_TABLE_STATUS Session Session 5 20 0 N 32769 0 63
69
def data_dictionary show_table_status SHOW_TABLE_STATUS Schema Schema 8 256 0 N 1 0 45
70
def data_dictionary show_table_status SHOW_TABLE_STATUS Name Name 8 256 0 N 1 0 45
71
def data_dictionary show_table_status SHOW_TABLE_STATUS Type Type 8 256 0 N 1 0 45
72
def data_dictionary show_table_status SHOW_TABLE_STATUS Engine Engine 8 256 0 N 1 0 45
73
def data_dictionary show_table_status SHOW_TABLE_STATUS Version Version 8 256 0 N 1 0 45
74
def data_dictionary show_table_status SHOW_TABLE_STATUS Rows Rows 8 256 0 N 1 0 45
75
def data_dictionary show_table_status SHOW_TABLE_STATUS Avg_row_length Avg_row_length 8 256 0 N 1 0 45
76
def data_dictionary show_table_status SHOW_TABLE_STATUS Table_size Table_size 8 256 0 N 1 0 45
77
def data_dictionary show_table_status SHOW_TABLE_STATUS Auto_increment Auto_increment 8 256 0 N 1 0 45
78
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
97
80
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
98
def information_schema schemata SCHEMATA SCHEMA_NAME Database 8 256 18 N 1 0 45
81
def data_dictionary schema_names SCHEMA_NAMES SCHEMA_NAME Database 8 256 18 N 1 0 45
100
84
information_schema
103
87
show databases like "test%";
104
88
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
105
def information_schema schemata SCHEMATA SCHEMA_NAME Database (test%) 8 256 4 N 1 0 45
89
def data_dictionary schema_names SCHEMA_NAMES SCHEMA_NAME Database (test%) 8 256 4 N 1 0 45
108
92
create table t1 (f1 int not null, f2 int not null, f3 int not null, f4 int not null, primary key(f1,f2,f3,f4));
119
103
Table Op Msg_type Msg_text
120
104
test.t1 analyze status OK
121
105
show index from t1;
122
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
123
t1 0 PRIMARY 1 f1 A 2 NULL NULL BTREE
124
t1 0 PRIMARY 2 f2 A 6 NULL NULL BTREE
125
t1 0 PRIMARY 3 f3 A 18 NULL NULL BTREE
126
t1 0 PRIMARY 4 f4 A 18 NULL NULL BTREE
106
Table Unique Key_name Seq_in_index Column_name
127
111
show index from t1;
128
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
129
t1 0 PRIMARY 1 f1 A 2 NULL NULL BTREE
130
t1 0 PRIMARY 2 f2 A 6 NULL NULL BTREE
131
t1 0 PRIMARY 3 f3 A 18 NULL NULL BTREE
132
t1 0 PRIMARY 4 f4 A 18 NULL NULL BTREE
112
Table Unique Key_name Seq_in_index Column_name
134
118
create temporary table t1 (a int not null);
135
119
show create table t1;
158
142
`c-b` int DEFAULT NULL COMMENT 'name with a minus',
159
143
`space 2` int DEFAULT NULL COMMENT 'name with a space'
160
144
) ENGINE=DEFAULT COMMENT='it''s a table'
161
show full columns from t1;
162
Field Type Collation Null Key Default Extra Privileges Comment
163
name varchar(20) utf8_general_ci YES O'Brien O'Brien as default
164
c int NULL NO NULL int column
165
c-b int NULL YES NULL name with a minus
166
space 2 int NULL YES NULL name with a space
145
show columns from t1;
146
Field Type Null Default Default_is_NULL On_Update
147
name VARCHAR TRUE O'Brien FALSE
148
c INTEGER FALSE O'Brien FALSE
149
c-b INTEGER TRUE O'Brien TRUE
150
space 2 INTEGER TRUE O'Brien TRUE
168
152
create table t1 (a int not null, unique aa (a));
169
153
show create table t1;
209
193
create table t1 (a decimal(9,2), b decimal (9,0), e double(9,2), f double(5,0), h float(3,2), i float(3,0));
210
194
show columns from t1;
211
Field Type Null Key Default Extra
212
a decimal(9,2) YES NULL
213
b decimal(9,0) YES NULL
214
e double(9,2) YES NULL
215
f double(5,0) YES NULL
216
h double(3,2) YES NULL
217
i double(3,0) YES NULL
218
show full columns from t1;
219
Field Type Collation Null Key Default Extra Privileges Comment
220
a decimal(9,2) NULL YES NULL
221
b decimal(9,0) NULL YES NULL
222
e double(9,2) NULL YES NULL
223
f double(5,0) NULL YES NULL
224
h double(3,2) NULL YES NULL
225
i double(3,0) NULL YES NULL
195
Field Type Null Default Default_is_NULL On_Update
202
show columns from t1;
203
Field Type Null Default Default_is_NULL On_Update
227
211
create temporary table t1 (
266
250
create table t1 (a int not null);
267
251
create table t2 select max(a) from t1;
268
252
show columns from t2;
269
Field Type Null Key Default Extra
253
Field Type Null Default Default_is_NULL On_Update
254
max(a) INTEGER TRUE TRUE
271
255
drop table t1,t2;
272
256
create table t1 (c decimal, d double, f float, r real);
273
257
show columns from t1;
274
Field Type Null Key Default Extra
275
c decimal(10,0) YES NULL
258
Field Type Null Default Default_is_NULL On_Update
280
264
create table t1 (c decimal(3,3), d double(3,3), f float(3,3));
281
265
show columns from t1;
282
Field Type Null Key Default Extra
283
c decimal(3,3) YES NULL
284
d double(3,3) YES NULL
285
f double(3,3) YES NULL
266
Field Type Null Default Default_is_NULL On_Update
287
271
CREATE TABLE ```ab``cd``` (i INT);
288
272
SHOW CREATE TABLE ```ab``cd```;
333
317
insert into t2 values (1),(2);
334
318
insert into t3 values (1,1),(2,2);
335
319
show table status;
336
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
320
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
321
# test t1 TEMPORARY MEMORY # # # # #
322
# test t2 TEMPORARY MEMORY # # # # #
323
# test t3 TEMPORARY MEMORY # # # # #
337
324
insert into t1 values (3),(4);
338
325
insert into t2 values (3),(4);
339
326
insert into t3 values (3,3),(4,4);
340
327
show table status;
341
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
328
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
329
# test t1 TEMPORARY MEMORY # # # # #
330
# test t2 TEMPORARY MEMORY # # # # #
331
# test t3 TEMPORARY MEMORY # # # # #
342
332
insert into t1 values (5);
343
333
insert into t2 values (5);
344
334
insert into t3 values (5,5);
345
335
show table status;
346
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
336
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
337
# test t1 TEMPORARY MEMORY # # # # #
338
# test t2 TEMPORARY MEMORY # # # # #
339
# test t3 TEMPORARY MEMORY # # # # #
347
340
delete from t1 where a=3;
348
341
delete from t2 where b=3;
349
342
delete from t3 where a=3;
350
343
show table status;
351
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
344
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
345
# test t1 TEMPORARY MEMORY # # # # #
346
# test t2 TEMPORARY MEMORY # # # # #
347
# test t3 TEMPORARY MEMORY # # # # #
352
348
truncate table t1;
353
349
truncate table t2;
354
350
truncate table t3;
355
351
show table status;
356
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
352
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
353
# test t1 TEMPORARY MEMORY # # # # #
354
# test t2 TEMPORARY MEMORY # # # # #
355
# test t3 TEMPORARY MEMORY # # # # #
357
356
insert into t1 values (5);
358
357
insert into t2 values (5);
359
358
insert into t3 values (5,5);
360
359
show table status;
361
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
360
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
361
# test t1 TEMPORARY MEMORY # # # # #
362
# test t2 TEMPORARY MEMORY # # # # #
363
# test t3 TEMPORARY MEMORY # # # # #
362
364
delete from t1 where a=5;
363
365
delete from t2 where b=5;
364
366
delete from t3 where a=5;
365
367
show table status;
366
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment Plugin_name
368
Session Schema Name Type Engine Version Rows Avg_row_length Table_size Auto_increment
369
# test t1 TEMPORARY MEMORY # # # # #
370
# test t2 TEMPORARY MEMORY # # # # #
371
# test t3 TEMPORARY MEMORY # # # # #
367
372
drop table t1, t2, t3;
368
373
CREATE TEMPORARY TABLE t1 (i int, KEY (i)) ENGINE=MEMORY;
369
374
SHOW CREATE TABLE t1;
442
447
show index from t1;
443
448
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
444
def information_schema statistics STATISTICS TABLE_NAME Table 8 256 2 N 1 0 45
445
def information_schema statistics STATISTICS NON_UNIQUE Non_unique 5 20 1 N 32769 0 63
446
def information_schema statistics STATISTICS INDEX_NAME Key_name 8 256 7 N 1 0 45
447
def information_schema statistics STATISTICS SEQ_IN_INDEX Seq_in_index 5 20 1 N 32769 0 63
448
def information_schema statistics STATISTICS COLUMN_NAME Column_name 8 256 6 N 1 0 45
449
def information_schema statistics STATISTICS COLLATION Collation 8 4 1 Y 0 0 45
450
def information_schema statistics STATISTICS CARDINALITY Cardinality 5 20 1 Y 32768 0 63
451
def information_schema statistics STATISTICS SUB_PART Sub_part 5 20 3 Y 32768 0 63
452
def information_schema statistics STATISTICS PACKED Packed 8 40 0 Y 0 0 45
453
def information_schema statistics STATISTICS NULLABLE Null 8 12 0 N 1 0 45
454
def information_schema statistics STATISTICS INDEX_TYPE Index_type 8 64 5 N 1 0 45
455
def information_schema statistics STATISTICS COMMENT Comment 8 64 0 Y 0 0 45
456
def information_schema statistics STATISTICS INDEX_COMMENT Index_Comment 8 4096 0 N 1 0 45
457
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
458
t1 0 PRIMARY 1 field1 A 0 180 NULL BTREE
449
def data_dictionary show_indexes show_indexes Table Table 8 256 2 N 1 0 45
450
def data_dictionary show_indexes show_indexes Unique Unique 8 20 4 N 1 0 45
451
def data_dictionary show_indexes show_indexes Key_name Key_name 8 256 7 N 1 0 45
452
def data_dictionary show_indexes show_indexes Seq_in_index Seq_in_index 5 20 1 N 32769 0 63
453
def data_dictionary show_indexes show_indexes Column_name Column_name 8 256 6 N 1 0 45
454
Table Unique Key_name Seq_in_index Column_name
455
t1 TRUE PRIMARY 1 field1
460
457
create table t1 (
488
485
Tables_in_mysqlttest\1
490
487
show fields from `mysqlttest\1`.`a\b`;
491
Field Type Null Key Default Extra
488
Field Type Null Default Default_is_NULL On_Update
493
490
show columns from `a\b` from `mysqlttest\1`;
494
Field Type Null Key Default Extra
491
Field Type Null Default Default_is_NULL On_Update
496
493
show keys from `mysqlttest\1`.`a\b`;
497
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_Comment
494
Table Unique Key_name Seq_in_index Column_name
498
495
drop table `mysqlttest\1`.`a\b`;
499
496
drop database `mysqlttest\1`;
500
497
drop table if exists `été`;
501
498
create table `été` (field1 int);
503
Tables_in_test Table_type
505
502
drop table `été`;
506
503
show columns from `#mysql50#????????`;
507
504
Got one of the listed errors