Skip to content

Commit

Permalink
Fix test of characterset used with fulltext index in InnoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi authored and vuvova committed May 19, 2021
1 parent 6de84e6 commit b0910dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9437,12 +9437,10 @@ ha_innobase::ft_init_ext(
}
}

/* FIXME: utf32 and utf16 are not compatible with some
string function used. So to convert them to uft8 before
we proceed. */
if (strcmp(char_set->csname, "utf32") == 0
|| strcmp(char_set->csname, "utf16") == 0) {

/* Multi byte character sets like utf32 and utf16 are not
compatible with some string function used. So to convert them
to uft8 before we proceed. */
if (char_set->mbminlen != 1) {
buf_tmp_used = innobase_convert_string(
buf_tmp, sizeof(buf_tmp) - 1,
&my_charset_utf8mb3_general_ci,
Expand Down

0 comments on commit b0910dd

Please sign in to comment.