[Groonga-mysql-commit] mroonga/mroonga [master] mysql51: fix crash bug

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Oct 29 22:17:04 JST 2012


Kouhei Sutou	2012-10-29 22:17:04 +0900 (Mon, 29 Oct 2012)

  New Revision: fe65816779d47375a0c4568d8315031cb525d6de
  https://github.com/mroonga/mroonga/commit/fe65816779d47375a0c4568d8315031cb525d6de

  Log:
    mysql51: fix crash bug
    
    MySQL 5.1 doesn't have utf8mb4. We need to check its availability.
    
    [groonga-dev,01069]
    
    Reported by wakisuke. Thanks!!!

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2012-10-29 17:47:06 +0900 (de3eefc)
+++ ha_mroonga.cpp    2012-10-29 22:17:04 +0900 (7479eb9)
@@ -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);
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index