Navigation Menu

Skip to content

Commit

Permalink
[wrapper] fix lexicon key type.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 28, 2011
1 parent 372f415 commit f628ca1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ha_mroonga.cc
Expand Up @@ -1492,16 +1492,16 @@ int ha_mroonga::wrapper_create_index_table(grn_obj *grn_table,
index_column_flags |= GRN_OBJ_WITH_SECTION;
}

grn_obj *column_type = grn_ctx_at(ctx, GRN_DB_TEXT);
grn_obj *lexicon_key_type = grn_ctx_at(ctx, GRN_DB_SHORT_TEXT);
index_table = grn_table_create(ctx, index_name, strlen(index_name), NULL,
index_table_flags, column_type, 0);
index_table_flags, lexicon_key_type, 0);
if (ctx->rc) {
error = ER_CANT_CREATE_TABLE;
my_message(ER_CANT_CREATE_TABLE, ctx->errbuf, MYF(0));
grn_obj_unlink(ctx, column_type);
grn_obj_unlink(ctx, lexicon_key_type);
DBUG_RETURN(error);
}
grn_obj_unlink(ctx, column_type);
grn_obj_unlink(ctx, lexicon_key_type);
index_tables[i] = index_table;

grn_info_type info_type = GRN_INFO_DEFAULT_TOKENIZER;
Expand Down

0 comments on commit f628ca1

Please sign in to comment.