Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3d75cffa
Commit
3d75cffa
authored
Apr 28, 2024
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: INFORMATION_SCHEMA.STATISTICS doesn't show whether the index is disabled
parent
179515a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
mysql-test/main/information_schema2.result
mysql-test/main/information_schema2.result
+11
-0
mysql-test/main/information_schema2.test
mysql-test/main/information_schema2.test
+9
-0
sql/sql_show.cc
sql/sql_show.cc
+1
-1
No files found.
mysql-test/main/information_schema2.result
View file @
3d75cffa
...
...
@@ -25,3 +25,14 @@ t3
t4
drop table t1, t2, t3, t4;
# End of 5.5 tests
# 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';
index_name comment
a
alter table t1 disable keys;
select index_name, comment from information_schema.statistics where table_schema='test' and table_name='t1';
index_name comment
a disabled
drop table t1;
# End of 10.5 tests
mysql-test/main/information_schema2.test
View file @
3d75cffa
...
...
@@ -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
sql/sql_show.cc
View file @
3d75cffa
...
...
@@ -9400,7 +9400,7 @@ ST_FIELD_INFO stat_fields_info[]=
Column
(
"PACKED"
,
Varchar
(
10
),
NULLABLE
,
"Packed"
,
OPEN_FRM_ONLY
),
Column
(
"NULLABLE"
,
Varchar
(
3
),
NOT_NULL
,
"Null"
,
OPEN_FRM_ONLY
),
Column
(
"INDEX_TYPE"
,
Varchar
(
16
),
NOT_NULL
,
"Index_type"
,
OPEN_FULL_TABLE
),
Column
(
"COMMENT"
,
Varchar
(
16
),
NULLABLE
,
"Comment"
,
OPEN_F
RM_ONLY
),
Column
(
"COMMENT"
,
Varchar
(
16
),
NULLABLE
,
"Comment"
,
OPEN_F
ULL_TABLE
),
Column
(
"INDEX_COMMENT"
,
Varchar
(
INDEX_COMMENT_MAXLEN
),
NOT_NULL
,
"Index_comment"
,
OPEN_FRM_ONLY
),
CEnd
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment