Masafumi Yokoyama
null+****@clear*****
Wed Mar 18 16:42:19 JST 2015
Masafumi Yokoyama 2015-03-18 16:42:19 +0900 (Wed, 18 Mar 2015) New Revision: 1e94ef923d6dfd157b6578becd74fcb335c40c2a https://github.com/groonga/groonga/commit/1e94ef923d6dfd157b6578becd74fcb335c40c2a Merged 6529fce: Merge pull request #320 from groonga/fix-score-for-3-or-more-items-descending-of-section Message: Fix score for 3 or more items descending of section Modified files: lib/expr.c test/command/suite/select/match_columns/section/by_column/4_items/descending.test test/command/suite/select/match_columns/section/by_index/4_items/descending.test Modified: lib/expr.c (+1 -1) =================================================================== --- lib/expr.c 2015-03-18 16:36:57 +0900 (801e04c) +++ lib/expr.c 2015-03-18 16:42:19 +0900 (12f14cd) @@ -5187,7 +5187,7 @@ grn_table_select_index(grn_ctx *ctx, grn_obj *table, scan_info *si, int current_vector_size; current_vector_size = GRN_BULK_VSIZE(&wv)/sizeof(int32_t); if (weight_index < current_vector_size) { - *((int *)GRN_BULK_HEAD(&wv)) = weight; + ((int *)GRN_BULK_HEAD(&wv))[weight_index] = weight; } else { GRN_INT32_SET_AT(ctx, &wv, weight_index, weight); } Modified: test/command/suite/select/match_columns/section/by_column/4_items/descending.test (+0 -1) =================================================================== --- test/command/suite/select/match_columns/section/by_column/4_items/descending.test 2015-03-18 16:36:57 +0900 (176e468) +++ test/command/suite/select/match_columns/section/by_column/4_items/descending.test 2015-03-18 16:42:19 +0900 (8ca4555) @@ -1,4 +1,3 @@ -#@omit "TODO: Support this case" table_create Memos TABLE_NO_KEY column_create Memos title COLUMN_SCALAR ShortText column_create Memos content COLUMN_SCALAR ShortText Modified: test/command/suite/select/match_columns/section/by_index/4_items/descending.test (+0 -1) =================================================================== --- test/command/suite/select/match_columns/section/by_index/4_items/descending.test 2015-03-18 16:36:57 +0900 (5420caa) +++ test/command/suite/select/match_columns/section/by_index/4_items/descending.test 2015-03-18 16:42:19 +0900 (4126d0c) @@ -1,4 +1,3 @@ -#@omit "TODO: Support this case" table_create Memos TABLE_NO_KEY column_create Memos title COLUMN_SCALAR ShortText column_create Memos content COLUMN_SCALAR ShortText -------------- next part -------------- HTML����������������������������...Download