Commit 1c334ec0 authored by unknown's avatar unknown

charset.c:

  find only primary collations


mysys/charset.c:
  find only primary collations
parent fe47e535
......@@ -682,7 +682,8 @@ CHARSET_INFO *get_charset_by_csname(const char *cs_name, myf flags)
for (css= all_charsets; css < all_charsets+255; ++css)
{
if ( css[0] && css[0]->csname && !strcmp(css[0]->csname, cs_name))
if ( css[0] && (css[0]->state & MY_CS_PRIMARY) &&
css[0]->csname && !strcmp(css[0]->csname, cs_name))
{
cs= css[0]->number ? get_internal_charset(css[0]->number,flags) : NULL;
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment