null+****@clear*****
null+****@clear*****
2011年 9月 29日 (木) 00:00:17 JST
Kouhei Sutou 2011-09-28 15:00:17 +0000 (Wed, 28 Sep 2011)
New Revision: f628ca186cae52581abad86d4a652dc7b9e3ae53
Log:
[wrapper] fix lexicon key type.
Modified files:
ha_mroonga.cc
Modified: ha_mroonga.cc (+4 -4)
===================================================================
--- ha_mroonga.cc 2011-09-28 14:40:40 +0000 (680d35c)
+++ ha_mroonga.cc 2011-09-28 15:00:17 +0000 (9c3d2ce)
@@ -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;