Navigation Menu

Skip to content

Commit

Permalink
mysql51: set encoding on truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 23, 2012
1 parent 7a9260c commit d663d88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d663d88

Please sign in to comment.