Commit 8816bbae authored by unknown's avatar unknown

sql_show.cc:

  LIKE was used against wrong name


sql/sql_show.cc:
  LIKE was used against wrong name
parent f8b7332c
...@@ -1457,7 +1457,7 @@ int mysqld_show_collations(THD *thd, const char *wild) ...@@ -1457,7 +1457,7 @@ int mysqld_show_collations(THD *thd, const char *wild)
if (!cs[0] || !cl[0] || !my_charset_same(cs[0],cl[0]) || !(cs[0]->state & MY_CS_PRIMARY)) if (!cs[0] || !cl[0] || !my_charset_same(cs[0],cl[0]) || !(cs[0]->state & MY_CS_PRIMARY))
continue; continue;
if (cs[0] && !(wild && wild[0] && if (cs[0] && !(wild && wild[0] &&
wild_case_compare(system_charset_info,cs[0]->name,wild))) wild_case_compare(system_charset_info,cl[0]->name,wild)))
{ {
if (write_collation(protocol, cl[0])) if (write_collation(protocol, cl[0]))
goto err; goto err;
......
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