• bar@mysql.com's avatar
    Bug#18004 Connecting crashes server when default charset is UCS2 · 33e446b3
    bar@mysql.com authored
    table.cc:
      Fixing to use system_charset_info instead of default_charset_info.
      Crash happened because the "ctype" array is empty in UCS2,
      and thus cannot be used with my_isspace().
      The reason why UCS2 appeared in this context was because of
      of default_charset_info variable incorrectly substituted to my_isspace().
      As functions check_db_name(), check_table_name() and check_column_name()
      always get values in utf8, system_charset_info must be used instead.
    ctype_ucs2_def.test, ctype_ucs2_def-master.opt, ctype_ucs2_def.result:
      new file
    33e446b3
table.cc 44.3 KB