[Groonga-commit] groonga/groonga [master] Changed output of proc_load from bare number to array.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 2日 (金) 20:12:44 JST


Tasuku SUENAGA a.k.a. gunyarakun	2010-07-02 11:12:44 +0000 (Fri, 02 Jul 2010)

  New Revision: f67b0577c68992193f3ba945eefd58730c054358

  Log:
    Changed output of proc_load from bare number to array.

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -0)
===================================================================
--- lib/proc.c    2010-07-02 10:34:55 +0000 (e8d1617)
+++ lib/proc.c    2010-07-02 11:12:44 +0000 (767ec93)
@@ -363,7 +363,9 @@ proc_load(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
   if (ctx->impl->loader.stat != GRN_LOADER_END) {
     grn_ctx_set_next_expr(ctx, grn_proc_get_info(ctx, user_data, NULL, NULL, NULL));
   } else {
+    GRN_OUTPUT_ARRAY_OPEN("RESULT", 1);
     GRN_OUTPUT_INT64(ctx->impl->loader.nrecords);
+    GRN_OUTPUT_ARRAY_CLOSE();
     if (ctx->impl->loader.table) {
       grn_db_touch(ctx, DB_OBJ(ctx->impl->loader.table)->db);
     }




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