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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9564cd43
Commit
9564cd43
authored
Oct 01, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHOW TABLE STATUS now displays table charset as well
parent
ce5696e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+1
-1
sql/sql_show.cc
sql/sql_show.cc
+4
-0
No files found.
mysql-test/r/show_check.result
View file @
9564cd43
...
@@ -43,7 +43,7 @@ wait_timeout 28800
...
@@ -43,7 +43,7 @@ wait_timeout 28800
show variables like "this_doesn't_exists%";
show variables like "this_doesn't_exists%";
Variable_name Value
Variable_name Value
show table status from test like "this_doesn't_exists%";
show table status from test like "this_doesn't_exists%";
Name Type Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Create_options Comment
Name Type Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time C
harset C
reate_options Comment
show databases;
show databases;
Database
Database
mysql
mysql
...
...
sql/sql_show.cc
View file @
9564cd43
...
@@ -484,6 +484,8 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
...
@@ -484,6 +484,8 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
item
->
maybe_null
=
1
;
item
->
maybe_null
=
1
;
field_list
.
push_back
(
item
=
new
Item_datetime
(
"Check_time"
));
field_list
.
push_back
(
item
=
new
Item_datetime
(
"Check_time"
));
item
->
maybe_null
=
1
;
item
->
maybe_null
=
1
;
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"Charset"
,
32
));
item
->
maybe_null
=
1
;
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"Create_options"
,
255
));
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"Create_options"
,
255
));
item
->
maybe_null
=
1
;
item
->
maybe_null
=
1
;
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"Comment"
,
80
));
field_list
.
push_back
(
item
=
new
Item_empty_string
(
"Comment"
,
80
));
...
@@ -559,6 +561,8 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
...
@@ -559,6 +561,8 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
localtime_r
(
&
file
->
check_time
,
&
tm_tmp
);
localtime_r
(
&
file
->
check_time
,
&
tm_tmp
);
net_store_data
(
packet
,
&
tm_tmp
);
net_store_data
(
packet
,
&
tm_tmp
);
}
}
net_store_data
(
packet
,
convert
,
table
->
table_charset
?
table
->
table_charset
->
name
:
"default"
);
{
{
char
option_buff
[
350
],
*
ptr
;
char
option_buff
[
350
],
*
ptr
;
ptr
=
option_buff
;
ptr
=
option_buff
;
...
...
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