[Groonga-commit] groonga/groonga [master] Fixed missing grn_table_get_key() in suggest proc.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 8月 19日 (木) 19:58:17 JST


Daijiro MORI	2010-08-19 10:58:17 +0000 (Thu, 19 Aug 2010)

  New Revision: 9f35ac55d387af8f4e5c10c7ae707213f54c5f46

  Log:
    Fixed missing grn_table_get_key() in suggest proc.

  Modified files:
    modules/functions/suggest.c

  Modified: modules/functions/suggest.c (+1 -0)
===================================================================
--- modules/functions/suggest.c    2010-08-19 09:46:47 +0000 (f67a7a4)
+++ modules/functions/suggest.c    2010-08-19 10:58:17 +0000 (5b32ca0)
@@ -79,6 +79,7 @@ func_suggest(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
                       unsigned int key_len;
                       char key[GRN_TABLE_MAX_KEY_SIZE];
                       grn_table_get_key(ctx, sorted, sid, &stid, sizeof(grn_id));
+                      grn_table_get_key(ctx, res, stid, &stid, sizeof(grn_id));
                       key_len = grn_table_get_key(ctx, table, stid, key, GRN_TABLE_MAX_KEY_SIZE);
                       GRN_OUTPUT_STR(key, key_len);
                     }




Groonga-commit メーリングリストの案内
Back to archive index