null+****@clear*****
null+****@clear*****
2011年 12月 19日 (月) 13:33:25 JST
Yoji SHIDARA 2011-12-19 04:33:25 +0000 (Mon, 19 Dec 2011) New Revision: 0d1582b8250f0ff46be2bd6e3028b4564ab612e0 Log: [msgpack] explicitly give # of items of NHITS NHITS always has exactly one element. Modified files: lib/output.c Modified: lib/output.c (+1 -1) =================================================================== --- lib/output.c 2011-12-19 04:44:25 +0000 (cff6925) +++ lib/output.c 2011-12-19 04:33:25 +0000 (af898e3) @@ -929,7 +929,7 @@ grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, GRN_CURSOR_ASCENDING); if (!tc) { ERRCLR(ctx); } grn_output_array_open(ctx, outbuf, output_type, "RESULTSET", -1); - grn_output_array_open(ctx, outbuf, output_type, "NHITS", -1); + grn_output_array_open(ctx, outbuf, output_type, "NHITS", 1); grn_text_itoa(ctx, outbuf, format->nhits); grn_output_array_close(ctx, outbuf, output_type); if (format->flags & GRN_OBJ_FORMAT_WITH_COLUMN_NAMES) {