1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

bugfix: INFORMATION_SCHEMA.STATISTICS doesn't show whether the index is disabled

This commit is contained in:
Sergei Golubchik
2024-04-28 10:38:32 +02:00
parent 179515a68c
commit 3d75cffa91
3 changed files with 21 additions and 1 deletions

View File

@ -19,3 +19,12 @@ select * from t4 order by table_name;
drop table t1, t2, t3, t4;
--echo # End of 5.5 tests
--echo # INFORMATION_SCHEMA.STATISTICS doesn't show if the index is disabled
create table t1 (a int, key(a));
select index_name, comment from information_schema.statistics where table_schema='test' and table_name='t1';
alter table t1 disable keys;
select index_name, comment from information_schema.statistics where table_schema='test' and table_name='t1';
drop table t1;
--echo # End of 10.5 tests