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

"SHOW CHARACTER SET" now displays 1 for 8bit charsets in "mb_maxlen" column.

0 was dispayed before, this looked confusing.
This commit is contained in:
bar@bar.mysql.r18.ru
2002-09-05 21:55:26 +05:00
parent dd5382187e
commit c361923f34

View File

@ -1391,7 +1391,7 @@ int mysqld_show_charsets(THD *thd, const char *wild)
net_store_data(&packet2,convert,cs->name);
net_store_data(&packet2,(uint32) cs->number);
net_store_data(&packet2,(uint32) cs->strxfrm_multiply);
net_store_data(&packet2,(uint32) cs->mbmaxlen);
net_store_data(&packet2,(uint32) cs->mbmaxlen ? cs->mbmaxlen : 1);
if (my_net_write(&thd->net, (char*) packet2.ptr(),packet2.length()))
goto err;