mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SHOW TABLE STATUS now displays table charset as well
This commit is contained in:
@ -484,6 +484,8 @@ int mysqld_extend_show_tables(THD *thd,const char *db,const char *wild)
|
||||
item->maybe_null=1;
|
||||
field_list.push_back(item=new Item_datetime("Check_time"));
|
||||
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));
|
||||
item->maybe_null=1;
|
||||
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)
|
||||
localtime_r(&file->check_time,&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;
|
||||
ptr=option_buff;
|
||||
|
Reference in New Issue
Block a user