From c361923f349424b74718f55be25f4b161c6e4166 Mon Sep 17 00:00:00 2001 From: "bar@bar.mysql.r18.ru" <> Date: Thu, 5 Sep 2002 21:55:26 +0500 Subject: [PATCH] "SHOW CHARACTER SET" now displays 1 for 8bit charsets in "mb_maxlen" column. 0 was dispayed before, this looked confusing. --- sql/sql_show.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index e227a5bf5ca..7ac0affbec5 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -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;