Skip to content

Commit b0910dd

Browse files
montywivuvova
authored andcommitted
Fix test of characterset used with fulltext index in InnoDB
1 parent 6de84e6 commit b0910dd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9437,12 +9437,10 @@ ha_innobase::ft_init_ext(
94379437
}
94389438
}
94399439

9440-
/* FIXME: utf32 and utf16 are not compatible with some
9441-
string function used. So to convert them to uft8 before
9442-
we proceed. */
9443-
if (strcmp(char_set->csname, "utf32") == 0
9444-
|| strcmp(char_set->csname, "utf16") == 0) {
9445-
9440+
/* Multi byte character sets like utf32 and utf16 are not
9441+
compatible with some string function used. So to convert them
9442+
to uft8 before we proceed. */
9443+
if (char_set->mbminlen != 1) {
94469444
buf_tmp_used = innobase_convert_string(
94479445
buf_tmp, sizeof(buf_tmp) - 1,
94489446
&my_charset_utf8mb3_general_ci,

0 commit comments

Comments
 (0)