[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] mysql51: set encoding on truncate

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 11:04:07 JST 2012


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

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

  Merged d2a70dc: Merge branch 'master' of github.com:mroonga/mroonga

  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;
-------------- next part --------------
HTML����������������������������...
Download 



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