[Groonga-mysql-commit] mroonga/mroonga [master] mysql51: set encoding on truncate

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 23日 (月) 19:24:18 JST


Kouhei Sutou	2012-04-23 19:24:18 +0900 (Mon, 23 Apr 2012)

  New Revision: d663d88edf62ac63b00936b8c1c442cf03d07c7c

  Log:
    mysql51: set encoding on truncate

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+8 -0)
===================================================================
--- ha_mroonga.cpp    2012-04-23 18:16:12 +0900 (7d1fd14)
+++ ha_mroonga.cpp    2012-04-23 19:24:18 +0900 (dd4c328)
@@ -9669,6 +9669,10 @@ int ha_mroonga::wrapper_truncate_index()
 
   int error = 0;
 
+  error = mrn_change_encoding(ctx, system_charset_info);
+  if (error)
+    DBUG_RETURN(error);
+
   if (is_dry_write()) {
     DBUG_PRINT("info", ("mroonga: dry write: ha_mroonga::%s", __FUNCTION__));
     DBUG_RETURN(error);
@@ -9726,6 +9730,10 @@ int ha_mroonga::storage_truncate_index()
   MRN_DBUG_ENTER_METHOD();
   int error = 0;
 
+  error = mrn_change_encoding(ctx, system_charset_info);
+  if (error)
+    DBUG_RETURN(error);
+
   grn_rc rc;
   uint i;
   uint n_keys = table->s->keys;




Groonga-mysql-commit メーリングリストの案内
Back to archive index