Navigation Menu

Skip to content

Commit

Permalink
storage: don't normalize key for multiple column index
Browse files Browse the repository at this point in the history
This is incompatible change.
You need to recreate multiple column index defined by mroonga 2.02 or
ealier. You can recreate index online by DROP INDEX and ADD INDEX.
  • Loading branch information
kou committed May 28, 2012
1 parent ae13b57 commit db6f8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ha_mroonga.cpp
Expand Up @@ -2729,8 +2729,8 @@ int ha_mroonga::storage_create_index(TABLE *table, const char *grn_table_name,
index_table_flags |= GRN_OBJ_TABLE_HASH_KEY;
} else {
index_table_flags |= GRN_OBJ_TABLE_PAT_KEY;
if (is_need_normalize(&key_info->key_part->field[0]))
{
if (!is_multiple_column_index &&
is_need_normalize(&key_info->key_part->field[0])) {
index_table_flags |= GRN_OBJ_KEY_NORMALIZE;
}
}
Expand Down

0 comments on commit db6f8f5

Please sign in to comment.