[Groonga-commit] groonga/groonga at 09eb5b5 [master] Check whether the format is for result set or not

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jul 13 22:55:29 JST 2014


Kouhei Sutou	2014-07-13 22:55:29 +0900 (Sun, 13 Jul 2014)

  New Revision: 09eb5b50058bf33bda7f9620189bf24ced8f561c
  https://github.com/groonga/groonga/commit/09eb5b50058bf33bda7f9620189bf24ced8f561c

  Message:
    Check whether the format is for result set or not

  Modified files:
    lib/output.c

  Modified: lib/output.c (+8 -0)
===================================================================
--- lib/output.c    2014-07-13 22:51:44 +0900 (b83cdaf)
+++ lib/output.c    2014-07-13 22:55:29 +0900 (735173b)
@@ -822,7 +822,15 @@ static inline void
 grn_output_uvector(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
                    grn_obj *uvector, grn_obj_format *format)
 {
+  grn_bool output_result_set = GRN_FALSE;
+
   if (format) {
+    if (GRN_BULK_VSIZE(&(format->columns)) > 0) {
+      output_result_set = GRN_TRUE;
+    }
+  }
+
+  if (output_result_set) {
     grn_output_uvector_result_set(ctx, outbuf, output_type, uvector, format);
     return;
   }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index