Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:41:04 JST 2012
Kouhei Sutou 2011-09-29 00:00:17 +0900 (Thu, 29 Sep 2011) New Revision: f628ca186cae52581abad86d4a652dc7b9e3ae53 https://github.com/mroonga/mroonga/commit/f628ca186cae52581abad86d4a652dc7b9e3ae53 Log: [wrapper] fix lexicon key type. Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+4 -4) =================================================================== --- ha_mroonga.cc 2011-09-28 23:40:40 +0900 (680d35c) +++ ha_mroonga.cc 2011-09-29 00:00:17 +0900 (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; -------------- next part -------------- HTML����������������������������...Download