44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
#
|
|
# Test mysql.innodb_(table|index)_stats with long table names.
|
|
#
|
|
|
|
|
|
CREATE TABLE t_cdefgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd
|
|
(a INT, b INT) ENGINE=INNODB
|
|
PARTITION BY RANGE (a)
|
|
SUBPARTITION BY HASH(b)
|
|
(
|
|
PARTITION p1_defgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd
|
|
VALUES LESS THAN (100)
|
|
(
|
|
SUBPARTITION
|
|
p1s1_fgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd,
|
|
SUBPARTITION
|
|
p1s2_fgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd
|
|
),
|
|
PARTITION p2_defgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd
|
|
VALUES LESS THAN (200)
|
|
(
|
|
SUBPARTITION
|
|
p2s1_fgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd,
|
|
SUBPARTITION
|
|
p2s2_fgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd
|
|
)
|
|
);
|
|
|
|
# On Windows MySQL uses lowercase p and sp.
|
|
-- replace_result #p# #P# #sp# #SP#
|
|
SELECT DISTINCT table_name
|
|
FROM mysql.innodb_table_stats
|
|
WHERE table_name LIKE 't_cde%' OR table_name LIKE 'ᵗ%'
|
|
ORDER BY 1;
|
|
|
|
# On Windows MySQL uses lowercase p and sp.
|
|
-- replace_result #p# #P# #sp# #SP#
|
|
SELECT DISTINCT table_name
|
|
FROM mysql.innodb_index_stats
|
|
WHERE table_name LIKE 't_cde%' OR table_name LIKE 'ᵗ%'
|
|
ORDER BY 1;
|
|
|
|
DROP TABLE t_cdefgh10abcdefgh20abcdefgh30abcdefgh40abcdefgh50abcdefgh60abcd;
|