Navigation Menu

Skip to content

Commit

Permalink
mysql51: fix crash bug
Browse files Browse the repository at this point in the history
MySQL 5.1 doesn't have utf8mb4. We need to check its availability.

[groonga-dev,01069]

Reported by wakisuke. Thanks!!!
  • Loading branch information
kou committed Oct 29, 2012
1 parent 002af71 commit fe65816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -289,7 +289,7 @@ static int mrn_change_encoding(grn_ctx *ctx, const CHARSET_INFO *charset)
GRN_CTX_SET_ENCODING(ctx, GRN_ENC_UTF8);
DBUG_RETURN(0);
}
if (charset->cset == mrn_charset_utf8mb4->cset)
if (mrn_charset_utf8mb4 && charset->cset == mrn_charset_utf8mb4->cset)
{
GRN_CTX_SET_ENCODING(ctx, GRN_ENC_UTF8);
DBUG_RETURN(0);
Expand Down

0 comments on commit fe65816

Please sign in to comment.