Skip to content

Commit 15c2a56

Browse files
gopshankdahlerlend
authored andcommitted
WL#6599 - New Data Dictionary and I_S integration.
Post-push patch moving a result file to its right location and also recording results to capture correct error message.
1 parent fe401b5 commit 15c2a56

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

mysql-test/t/information_schema_statistics.result renamed to mysql-test/r/information_schema_statistics.result

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ FROM information_schema.tables WHERE table_name in ('t1', 't2');
3535
TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CHECKSUM UPDATE_TIME CHECK_TIME
3636
24 682 16384 0 0 0 58 NULL # NULL
3737
24 13 416 3659174697238527 2048 104 33 NULL # NULL
38-
SELECT * FROM information_schema.statistics WHERE table_name='t3';
38+
SELECT * FROM information_schema.statistics WHERE table_name='t3'
39+
ORDER BY index_name, seq_in_index;
3940
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT IS_VISIBLE
4041
def test t3 1 test f0 1 f0 A 32 NULL NULL BTREE YES
4142
def test t3 1 test f1 1 f1 A 4 NULL NULL YES BTREE YES
@@ -50,7 +51,8 @@ FROM information_schema.tables WHERE table_name in ('t1', 't2');
5051
TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CHECKSUM UPDATE_TIME CHECK_TIME
5152
24 682 16384 0 0 0 58 NULL # NULL
5253
24 13 416 3659174697238527 2048 104 33 NULL # NULL
53-
SELECT * FROM information_schema.statistics WHERE table_name='t3';
54+
SELECT * FROM information_schema.statistics WHERE table_name='t3'
55+
ORDER BY index_name, seq_in_index;
5456
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT INDEX_COMMENT IS_VISIBLE
5557
def test t3 1 test f0 1 f0 A 32 NULL NULL BTREE YES
5658
def test t3 1 test f1 1 f1 A 4 NULL NULL YES BTREE YES
@@ -71,9 +73,9 @@ Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_par
7173
t1 0 PRIMARY 1 f2 A 0 NULL NULL BTREE YES
7274
t1 0 f1 1 f1 A 0 NULL NULL YES BTREE YES
7375
SELECT * FROM information_schema.tmp_tables_columns;
74-
ERROR 42S02: Unknown table 'tmp_tables_columns' in information_schema
76+
ERROR 42S02: Unknown table 'TMP_TABLES_COLUMNS' in information_schema
7577
SELECT * FROM information_schema.tmp_tables_keys;
76-
ERROR 42S02: Unknown table 'tmp_tables_keys' in information_schema
78+
ERROR 42S02: Unknown table 'TMP_TABLES_KEYS' in information_schema
7779
DROP TEMPORARY TABLE t1;
7880
CREATE TABLE t1 (f1 int);
7981
SELECT TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE

mysql-test/t/information_schema_statistics.test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ SELECT table_rows, avg_row_length, data_length, max_data_length, index_length,
4444
data_free, auto_increment, checksum, update_time, check_time
4545
FROM information_schema.tables WHERE table_name in ('t1', 't2');
4646

47-
SELECT * FROM information_schema.statistics WHERE table_name='t3';
47+
SELECT * FROM information_schema.statistics WHERE table_name='t3'
48+
ORDER BY index_name, seq_in_index;
4849

4950
--echo Case 2: IS query uses UDF's to read dynamic table statistics
5051
SET SESSION information_schema_stats=latest;
@@ -54,7 +55,8 @@ SELECT table_rows, avg_row_length, data_length, max_data_length, index_length,
5455
data_free, auto_increment, checksum, update_time, check_time
5556
FROM information_schema.tables WHERE table_name in ('t1', 't2');
5657

57-
SELECT * FROM information_schema.statistics WHERE table_name='t3';
58+
SELECT * FROM information_schema.statistics WHERE table_name='t3'
59+
ORDER BY index_name, seq_in_index;
5860

5961
SET SESSION information_schema_stats=cached;
6062

0 commit comments

Comments
 (0)