Commit ea4621e5 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

charset.c:

  find only primary collations
parent 9a99ac89
......@@ -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