Skip to content

Commit 513f584

Browse files
committed
MDEV-6138 show sysvar's help in I_S tables
INFORMATION_SCHEMA.SYSTEM_VARIABLES
1 parent beb2422 commit 513f584

36 files changed

+12324
-70
lines changed

mysql-test/include/have_aria.inc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'aria' AND support IN ('YES', 'DEFAULT', 'ENABLED')`)
2+
{
3+
--skip Test requires Aria
4+
}

mysql-test/r/information_schema-big.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ SCHEMA_PRIVILEGES TABLE_SCHEMA
4848
SESSION_STATUS VARIABLE_NAME
4949
SESSION_VARIABLES VARIABLE_NAME
5050
STATISTICS TABLE_SCHEMA
51+
SYSTEM_VARIABLES VARIABLE_NAME
5152
TABLES TABLE_SCHEMA
5253
TABLESPACES TABLESPACE_NAME
5354
TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
@@ -102,6 +103,7 @@ SCHEMA_PRIVILEGES TABLE_SCHEMA
102103
SESSION_STATUS VARIABLE_NAME
103104
SESSION_VARIABLES VARIABLE_NAME
104105
STATISTICS TABLE_SCHEMA
106+
SYSTEM_VARIABLES VARIABLE_NAME
105107
TABLES TABLE_SCHEMA
106108
TABLESPACES TABLESPACE_NAME
107109
TABLE_CONSTRAINTS CONSTRAINT_SCHEMA

mysql-test/r/information_schema.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ SCHEMA_PRIVILEGES
7575
SESSION_STATUS
7676
SESSION_VARIABLES
7777
STATISTICS
78+
SYSTEM_VARIABLES
7879
TABLES
7980
TABLESPACES
8081
TABLE_CONSTRAINTS
@@ -819,6 +820,7 @@ information_schema PROCESSLIST INFO
819820
information_schema ROUTINES DTD_IDENTIFIER
820821
information_schema ROUTINES ROUTINE_DEFINITION
821822
information_schema ROUTINES ROUTINE_COMMENT
823+
information_schema SYSTEM_VARIABLES ENUM_VALUE_LIST
822824
information_schema TRIGGERS ACTION_CONDITION
823825
information_schema TRIGGERS ACTION_STATEMENT
824826
information_schema VIEWS VIEW_DEFINITION

mysql-test/r/information_schema_all_engines.result

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ SCHEMA_PRIVILEGES
4646
SESSION_STATUS
4747
SESSION_VARIABLES
4848
STATISTICS
49+
SYSTEM_VARIABLES
4950
TABLES
5051
TABLESPACES
5152
TABLE_CONSTRAINTS
@@ -115,6 +116,7 @@ SCHEMA_PRIVILEGES TABLE_SCHEMA
115116
SESSION_STATUS VARIABLE_NAME
116117
SESSION_VARIABLES VARIABLE_NAME
117118
STATISTICS TABLE_SCHEMA
119+
SYSTEM_VARIABLES VARIABLE_NAME
118120
TABLES TABLE_SCHEMA
119121
TABLESPACES TABLESPACE_NAME
120122
TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
@@ -184,6 +186,7 @@ SCHEMA_PRIVILEGES TABLE_SCHEMA
184186
SESSION_STATUS VARIABLE_NAME
185187
SESSION_VARIABLES VARIABLE_NAME
186188
STATISTICS TABLE_SCHEMA
189+
SYSTEM_VARIABLES VARIABLE_NAME
187190
TABLES TABLE_SCHEMA
188191
TABLESPACES TABLESPACE_NAME
189192
TABLE_CONSTRAINTS CONSTRAINT_SCHEMA
@@ -258,6 +261,7 @@ SCHEMA_PRIVILEGES information_schema.SCHEMA_PRIVILEGES 1
258261
SESSION_STATUS information_schema.SESSION_STATUS 1
259262
SESSION_VARIABLES information_schema.SESSION_VARIABLES 1
260263
STATISTICS information_schema.STATISTICS 1
264+
SYSTEM_VARIABLES information_schema.SYSTEM_VARIABLES 1
261265
TABLES information_schema.TABLES 1
262266
TABLESPACES information_schema.TABLESPACES 1
263267
TABLE_CONSTRAINTS information_schema.TABLE_CONSTRAINTS 1
@@ -317,6 +321,7 @@ Database: information_schema
317321
| SESSION_STATUS |
318322
| SESSION_VARIABLES |
319323
| STATISTICS |
324+
| SYSTEM_VARIABLES |
320325
| TABLES |
321326
| TABLESPACES |
322327
| TABLE_CONSTRAINTS |
@@ -376,6 +381,7 @@ Database: INFORMATION_SCHEMA
376381
| SESSION_STATUS |
377382
| SESSION_VARIABLES |
378383
| STATISTICS |
384+
| SYSTEM_VARIABLES |
379385
| TABLES |
380386
| TABLESPACES |
381387
| TABLE_CONSTRAINTS |
@@ -393,5 +399,5 @@ Wildcard: inf_rmation_schema
393399
| information_schema |
394400
SELECT table_schema, count(*) FROM information_schema.TABLES WHERE table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest') AND table_name<>'ndb_binlog_index' AND table_name<>'ndb_apply_status' GROUP BY TABLE_SCHEMA;
395401
table_schema count(*)
396-
information_schema 54
402+
information_schema 55
397403
mysql 30

mysql-test/suite/funcs_1/r/is_columns_is.result

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,19 @@ def information_schema STATISTICS SUB_PART 11 NULL YES bigint NULL NULL 19 0 NUL
324324
def information_schema STATISTICS TABLE_CATALOG 1 NO varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512) select
325325
def information_schema STATISTICS TABLE_NAME 3 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
326326
def information_schema STATISTICS TABLE_SCHEMA 2 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
327+
def information_schema SYSTEM_VARIABLES COMMAND_LINE_ARGUMENT 13 NULL YES varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
328+
def information_schema SYSTEM_VARIABLES DEFAULT_VALUE 4 NULL YES varchar 1024 3072 NULL NULL NULL utf8 utf8_general_ci varchar(1024) select
329+
def information_schema SYSTEM_VARIABLES ENUM_VALUE_LIST 11 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8 utf8_general_ci longtext select
330+
def information_schema SYSTEM_VARIABLES GLOBAL_VALUE 3 NULL YES varchar 1024 3072 NULL NULL NULL utf8 utf8_general_ci varchar(1024) select
331+
def information_schema SYSTEM_VARIABLES NUMERIC_BLOCK_SIZE 10 NULL YES varchar 21 63 NULL NULL NULL utf8 utf8_general_ci varchar(21) select
332+
def information_schema SYSTEM_VARIABLES NUMERIC_MAX_VALUE 9 NULL YES varchar 21 63 NULL NULL NULL utf8 utf8_general_ci varchar(21) select
333+
def information_schema SYSTEM_VARIABLES NUMERIC_MIN_VALUE 8 NULL YES varchar 21 63 NULL NULL NULL utf8 utf8_general_ci varchar(21) select
334+
def information_schema SYSTEM_VARIABLES READ_ONLY 12 NO varchar 3 9 NULL NULL NULL utf8 utf8_general_ci varchar(3) select
335+
def information_schema SYSTEM_VARIABLES SESSION_VALUE 2 NULL YES varchar 1024 3072 NULL NULL NULL utf8 utf8_general_ci varchar(1024) select
336+
def information_schema SYSTEM_VARIABLES VARIABLE_COMMENT 7 NO varchar 2048 6144 NULL NULL NULL utf8 utf8_general_ci varchar(2048) select
337+
def information_schema SYSTEM_VARIABLES VARIABLE_NAME 1 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
338+
def information_schema SYSTEM_VARIABLES VARIABLE_SCOPE 5 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
339+
def information_schema SYSTEM_VARIABLES VARIABLE_TYPE 6 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64) select
327340
def information_schema TABLES AUTO_INCREMENT 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned select
328341
def information_schema TABLES AVG_ROW_LENGTH 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned select
329342
def information_schema TABLES CHECKSUM 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned select
@@ -813,6 +826,19 @@ NULL information_schema STATISTICS SUB_PART bigint NULL NULL NULL NULL bigint(3)
813826
3.0000 information_schema STATISTICS INDEX_TYPE varchar 16 48 utf8 utf8_general_ci varchar(16)
814827
3.0000 information_schema STATISTICS COMMENT varchar 16 48 utf8 utf8_general_ci varchar(16)
815828
3.0000 information_schema STATISTICS INDEX_COMMENT varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
829+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
830+
3.0000 information_schema SYSTEM_VARIABLES SESSION_VALUE varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
831+
3.0000 information_schema SYSTEM_VARIABLES GLOBAL_VALUE varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
832+
3.0000 information_schema SYSTEM_VARIABLES DEFAULT_VALUE varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
833+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_SCOPE varchar 64 192 utf8 utf8_general_ci varchar(64)
834+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_TYPE varchar 64 192 utf8 utf8_general_ci varchar(64)
835+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_COMMENT varchar 2048 6144 utf8 utf8_general_ci varchar(2048)
836+
3.0000 information_schema SYSTEM_VARIABLES NUMERIC_MIN_VALUE varchar 21 63 utf8 utf8_general_ci varchar(21)
837+
3.0000 information_schema SYSTEM_VARIABLES NUMERIC_MAX_VALUE varchar 21 63 utf8 utf8_general_ci varchar(21)
838+
3.0000 information_schema SYSTEM_VARIABLES NUMERIC_BLOCK_SIZE varchar 21 63 utf8 utf8_general_ci varchar(21)
839+
1.0000 information_schema SYSTEM_VARIABLES ENUM_VALUE_LIST longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
840+
3.0000 information_schema SYSTEM_VARIABLES READ_ONLY varchar 3 9 utf8 utf8_general_ci varchar(3)
841+
3.0000 information_schema SYSTEM_VARIABLES COMMAND_LINE_ARGUMENT varchar 64 192 utf8 utf8_general_ci varchar(64)
816842
3.0000 information_schema TABLES TABLE_CATALOG varchar 512 1536 utf8 utf8_general_ci varchar(512)
817843
3.0000 information_schema TABLES TABLE_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
818844
3.0000 information_schema TABLES TABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)

mysql-test/suite/funcs_1/r/is_columns_is_embedded.result

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,19 @@ def information_schema STATISTICS SUB_PART 11 NULL YES bigint NULL NULL 19 0 NUL
324324
def information_schema STATISTICS TABLE_CATALOG 1 NO varchar 512 1536 NULL NULL NULL utf8 utf8_general_ci varchar(512)
325325
def information_schema STATISTICS TABLE_NAME 3 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
326326
def information_schema STATISTICS TABLE_SCHEMA 2 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
327+
def information_schema SYSTEM_VARIABLES COMMAND_LINE_ARGUMENT 13 NULL YES varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
328+
def information_schema SYSTEM_VARIABLES DEFAULT_VALUE 4 NULL YES varchar 1024 3072 NULL NULL NULL utf8 utf8_general_ci varchar(1024)
329+
def information_schema SYSTEM_VARIABLES ENUM_VALUE_LIST 11 NULL YES longtext 4294967295 4294967295 NULL NULL NULL utf8 utf8_general_ci longtext
330+
def information_schema SYSTEM_VARIABLES GLOBAL_VALUE 3 NULL YES varchar 1024 3072 NULL NULL NULL utf8 utf8_general_ci varchar(1024)
331+
def information_schema SYSTEM_VARIABLES NUMERIC_BLOCK_SIZE 10 NULL YES varchar 21 63 NULL NULL NULL utf8 utf8_general_ci varchar(21)
332+
def information_schema SYSTEM_VARIABLES NUMERIC_MAX_VALUE 9 NULL YES varchar 21 63 NULL NULL NULL utf8 utf8_general_ci varchar(21)
333+
def information_schema SYSTEM_VARIABLES NUMERIC_MIN_VALUE 8 NULL YES varchar 21 63 NULL NULL NULL utf8 utf8_general_ci varchar(21)
334+
def information_schema SYSTEM_VARIABLES READ_ONLY 12 NO varchar 3 9 NULL NULL NULL utf8 utf8_general_ci varchar(3)
335+
def information_schema SYSTEM_VARIABLES SESSION_VALUE 2 NULL YES varchar 1024 3072 NULL NULL NULL utf8 utf8_general_ci varchar(1024)
336+
def information_schema SYSTEM_VARIABLES VARIABLE_COMMENT 7 NO varchar 2048 6144 NULL NULL NULL utf8 utf8_general_ci varchar(2048)
337+
def information_schema SYSTEM_VARIABLES VARIABLE_NAME 1 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
338+
def information_schema SYSTEM_VARIABLES VARIABLE_SCOPE 5 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
339+
def information_schema SYSTEM_VARIABLES VARIABLE_TYPE 6 NO varchar 64 192 NULL NULL NULL utf8 utf8_general_ci varchar(64)
327340
def information_schema TABLES AUTO_INCREMENT 14 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned
328341
def information_schema TABLES AVG_ROW_LENGTH 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned
329342
def information_schema TABLES CHECKSUM 19 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(21) unsigned
@@ -813,6 +826,19 @@ NULL information_schema STATISTICS SUB_PART bigint NULL NULL NULL NULL bigint(3)
813826
3.0000 information_schema STATISTICS INDEX_TYPE varchar 16 48 utf8 utf8_general_ci varchar(16)
814827
3.0000 information_schema STATISTICS COMMENT varchar 16 48 utf8 utf8_general_ci varchar(16)
815828
3.0000 information_schema STATISTICS INDEX_COMMENT varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
829+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)
830+
3.0000 information_schema SYSTEM_VARIABLES SESSION_VALUE varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
831+
3.0000 information_schema SYSTEM_VARIABLES GLOBAL_VALUE varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
832+
3.0000 information_schema SYSTEM_VARIABLES DEFAULT_VALUE varchar 1024 3072 utf8 utf8_general_ci varchar(1024)
833+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_SCOPE varchar 64 192 utf8 utf8_general_ci varchar(64)
834+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_TYPE varchar 64 192 utf8 utf8_general_ci varchar(64)
835+
3.0000 information_schema SYSTEM_VARIABLES VARIABLE_COMMENT varchar 2048 6144 utf8 utf8_general_ci varchar(2048)
836+
3.0000 information_schema SYSTEM_VARIABLES NUMERIC_MIN_VALUE varchar 21 63 utf8 utf8_general_ci varchar(21)
837+
3.0000 information_schema SYSTEM_VARIABLES NUMERIC_MAX_VALUE varchar 21 63 utf8 utf8_general_ci varchar(21)
838+
3.0000 information_schema SYSTEM_VARIABLES NUMERIC_BLOCK_SIZE varchar 21 63 utf8 utf8_general_ci varchar(21)
839+
1.0000 information_schema SYSTEM_VARIABLES ENUM_VALUE_LIST longtext 4294967295 4294967295 utf8 utf8_general_ci longtext
840+
3.0000 information_schema SYSTEM_VARIABLES READ_ONLY varchar 3 9 utf8 utf8_general_ci varchar(3)
841+
3.0000 information_schema SYSTEM_VARIABLES COMMAND_LINE_ARGUMENT varchar 64 192 utf8 utf8_general_ci varchar(64)
816842
3.0000 information_schema TABLES TABLE_CATALOG varchar 512 1536 utf8 utf8_general_ci varchar(512)
817843
3.0000 information_schema TABLES TABLE_SCHEMA varchar 64 192 utf8 utf8_general_ci varchar(64)
818844
3.0000 information_schema TABLES TABLE_NAME varchar 64 192 utf8 utf8_general_ci varchar(64)

mysql-test/suite/funcs_1/r/is_tables_is.result

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,29 @@ user_comment
660660
Separator -----------------------------------------------------
661661
TABLE_CATALOG def
662662
TABLE_SCHEMA information_schema
663+
TABLE_NAME SYSTEM_VARIABLES
664+
TABLE_TYPE SYSTEM VIEW
665+
ENGINE MYISAM_OR_MARIA
666+
VERSION 10
667+
ROW_FORMAT DYNAMIC_OR_PAGE
668+
TABLE_ROWS #TBLR#
669+
AVG_ROW_LENGTH #ARL#
670+
DATA_LENGTH #DL#
671+
MAX_DATA_LENGTH #MDL#
672+
INDEX_LENGTH #IL#
673+
DATA_FREE #DF#
674+
AUTO_INCREMENT NULL
675+
CREATE_TIME #CRT#
676+
UPDATE_TIME #UT#
677+
CHECK_TIME #CT#
678+
TABLE_COLLATION utf8_general_ci
679+
CHECKSUM NULL
680+
CREATE_OPTIONS #CO#
681+
TABLE_COMMENT #TC#
682+
user_comment
683+
Separator -----------------------------------------------------
684+
TABLE_CATALOG def
685+
TABLE_SCHEMA information_schema
663686
TABLE_NAME TABLES
664687
TABLE_TYPE SYSTEM VIEW
665688
ENGINE MEMORY
@@ -1529,6 +1552,29 @@ user_comment
15291552
Separator -----------------------------------------------------
15301553
TABLE_CATALOG def
15311554
TABLE_SCHEMA information_schema
1555+
TABLE_NAME SYSTEM_VARIABLES
1556+
TABLE_TYPE SYSTEM VIEW
1557+
ENGINE MYISAM_OR_MARIA
1558+
VERSION 10
1559+
ROW_FORMAT DYNAMIC_OR_PAGE
1560+
TABLE_ROWS #TBLR#
1561+
AVG_ROW_LENGTH #ARL#
1562+
DATA_LENGTH #DL#
1563+
MAX_DATA_LENGTH #MDL#
1564+
INDEX_LENGTH #IL#
1565+
DATA_FREE #DF#
1566+
AUTO_INCREMENT NULL
1567+
CREATE_TIME #CRT#
1568+
UPDATE_TIME #UT#
1569+
CHECK_TIME #CT#
1570+
TABLE_COLLATION utf8_general_ci
1571+
CHECKSUM NULL
1572+
CREATE_OPTIONS #CO#
1573+
TABLE_COMMENT #TC#
1574+
user_comment
1575+
Separator -----------------------------------------------------
1576+
TABLE_CATALOG def
1577+
TABLE_SCHEMA information_schema
15321578
TABLE_NAME TABLES
15331579
TABLE_TYPE SYSTEM VIEW
15341580
ENGINE MEMORY

mysql-test/suite/funcs_1/r/is_tables_is_embedded.result

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,29 @@ user_comment
660660
Separator -----------------------------------------------------
661661
TABLE_CATALOG def
662662
TABLE_SCHEMA information_schema
663+
TABLE_NAME SYSTEM_VARIABLES
664+
TABLE_TYPE SYSTEM VIEW
665+
ENGINE MYISAM_OR_MARIA
666+
VERSION 10
667+
ROW_FORMAT DYNAMIC_OR_PAGE
668+
TABLE_ROWS #TBLR#
669+
AVG_ROW_LENGTH #ARL#
670+
DATA_LENGTH #DL#
671+
MAX_DATA_LENGTH #MDL#
672+
INDEX_LENGTH #IL#
673+
DATA_FREE #DF#
674+
AUTO_INCREMENT NULL
675+
CREATE_TIME #CRT#
676+
UPDATE_TIME #UT#
677+
CHECK_TIME #CT#
678+
TABLE_COLLATION utf8_general_ci
679+
CHECKSUM NULL
680+
CREATE_OPTIONS #CO#
681+
TABLE_COMMENT #TC#
682+
user_comment
683+
Separator -----------------------------------------------------
684+
TABLE_CATALOG def
685+
TABLE_SCHEMA information_schema
663686
TABLE_NAME TABLES
664687
TABLE_TYPE SYSTEM VIEW
665688
ENGINE MEMORY
@@ -1529,6 +1552,29 @@ user_comment
15291552
Separator -----------------------------------------------------
15301553
TABLE_CATALOG def
15311554
TABLE_SCHEMA information_schema
1555+
TABLE_NAME SYSTEM_VARIABLES
1556+
TABLE_TYPE SYSTEM VIEW
1557+
ENGINE MYISAM_OR_MARIA
1558+
VERSION 10
1559+
ROW_FORMAT DYNAMIC_OR_PAGE
1560+
TABLE_ROWS #TBLR#
1561+
AVG_ROW_LENGTH #ARL#
1562+
DATA_LENGTH #DL#
1563+
MAX_DATA_LENGTH #MDL#
1564+
INDEX_LENGTH #IL#
1565+
DATA_FREE #DF#
1566+
AUTO_INCREMENT NULL
1567+
CREATE_TIME #CRT#
1568+
UPDATE_TIME #UT#
1569+
CHECK_TIME #CT#
1570+
TABLE_COLLATION utf8_general_ci
1571+
CHECKSUM NULL
1572+
CREATE_OPTIONS #CO#
1573+
TABLE_COMMENT #TC#
1574+
user_comment
1575+
Separator -----------------------------------------------------
1576+
TABLE_CATALOG def
1577+
TABLE_SCHEMA information_schema
15321578
TABLE_NAME TABLES
15331579
TABLE_TYPE SYSTEM VIEW
15341580
ENGINE MEMORY
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
--vertical_results
2+
3+
# because its current value is printed below
4+
set timestamp=unix_timestamp('2014-09-01 13:40:23');
5+
# ditto
6+
set pseudo_thread_id=10;
7+
# to show session != global, and doesn't affect global_value_origin
8+
set sql_mode=ansi_quotes;
9+
# global_value_origin=SQL
10+
set global div_precision_increment=5;
11+
12+
--replace_regex /^\/\S+/PATH/
13+
--replace_result $MASTER_MYPORT MASTER_MYPORT
14+
select * from information_schema.system_variables
15+
where variable_name not like 'aria%' and
16+
variable_name not like 'debug%' and
17+
variable_name not like 'wsrep%' and
18+
variable_name not in ('large_files_support',
19+
'lower_case_file_system',
20+
'open_files_limit',
21+
'system_time_zone',
22+
'version_comment',
23+
'version_compile_machine', 'version_compile_os',
24+
'version_malloc_library', 'version'
25+
)
26+
order by variable_name;
27+
28+
# now various metadata but no values, for variables where
29+
# values change often
30+
select VARIABLE_NAME, VARIABLE_SCOPE, VARIABLE_TYPE, VARIABLE_COMMENT,
31+
NUMERIC_MIN_VALUE, NUMERIC_MAX_VALUE, NUMERIC_BLOCK_SIZE,
32+
ENUM_VALUE_LIST, READ_ONLY, COMMAND_LINE_ARGUMENT
33+
from information_schema.system_variables
34+
where variable_name in ('large_files_support',
35+
'lower_case_file_system',
36+
'open_files_limit',
37+
'system_time_zone',
38+
'version_comment',
39+
'version_compile_machine', 'version_compile_os',
40+
'version_malloc_library', 'version'
41+
)
42+
order by variable_name;
43+
44+
set global div_precision_increment=default;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--auto-increment-increment=1

0 commit comments

Comments
 (0)