[Groonga-commit] groonga/groonga [master] output "END" each end of the reply when tsv assigned as output type.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 12日 (月) 10:21:08 JST


Daijiro MORI	2010-07-12 01:21:08 +0000 (Mon, 12 Jul 2010)

  New Revision: a52216b54719605485edee6fc5115cf0ea6ebbea

  Log:
    output "END" each end of the reply when tsv assigned as output type.

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c    2010-07-10 01:07:25 +0000 (12a33a0)
+++ src/groonga.c    2010-07-12 01:21:08 +0000 (06136c6)
@@ -389,7 +389,7 @@ print_return_code(grn_ctx *ctx, grn_rc rc, grn_obj *head, grn_obj *body, grn_obj
         grn_text_itoa(ctx, head, ctx->errline);
       }
     }
-    GRN_TEXT_PUTC(ctx, head, '\n');
+    GRN_TEXT_PUTS(ctx, head, "\nEND\n");
     break;
   case GRN_CONTENT_XML:
     GRN_TEXT_PUTS(ctx, head, "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RESULT CODE=\"");




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