summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.udmsearch.izhnet.ru>2002-07-30 14:02:29 +0500
committerunknown <bar@bar.udmsearch.izhnet.ru>2002-07-30 14:02:29 +0500
commitfcaf867bb93d188397cb4788b6204283a8af39d3 (patch)
treef0b07d900cb88e69708407c2b7b0fe29bd62dfdb /sql/sql_show.cc
parentebdc990b69455548fa412a22286b302f0c1a1322 (diff)
downloadmariadb-git-fcaf867bb93d188397cb4788b6204283a8af39d3.tar.gz
Renamed some charset related constant
New fields in CHARSET_INFO for more nice SHOW CHARACTER SET Dynamic charsets are now handled in faster way SHOW CHARACTER SET now displays not only compiled charsets but dynamic charsets too include/m_ctype.h: Renamed constant New fields in CHARSET_INFO include/my_sys.h: Constant have been moved to m_ctype.h libmysqld/lib_sql.cc: Renamed constant mysys/charset.c: Dynamic charsets are now handled in new way to speedup things mysys/test_charset.c: Renamed constant sql/mysqld.cc: Renamed constant sql/sql_show.cc: SHOW CHARACTER SET now displays not only compiled charsets but dynamic charsets too strings/ctype.c: New fields in CHARSET_INFO
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 494607c7fff..e227a5bf5ca 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -1381,8 +1381,10 @@ int mysqld_show_charsets(THD *thd, const char *wild)
if (send_fields(thd,field_list,1))
DBUG_RETURN(1);
- for (cs=compiled_charsets ; cs->name ; cs++ )
+ for (cs=all_charsets ; cs < all_charsets+255 ; cs++ )
{
+ if (!cs->name)
+ continue;
if (!(wild && wild[0] && wild_case_compare(system_charset_info,cs->name,wild)))
{
packet2.length(0);