[Groonga-commit] groonga/grngo at be24fbb [master] Set the type of buffer object to GRN_UVECTOR after grn_obj_get_value().

Back to archive index

susumu.yata null+****@clear*****
Fri Jul 31 14:47:33 JST 2015


susumu.yata	2015-07-31 14:47:33 +0900 (Fri, 31 Jul 2015)

  New Revision: be24fbb28ef6437025555d189c25f4f599c94f1c
  https://github.com/groonga/grngo/commit/be24fbb28ef6437025555d189c25f4f599c94f1c

  Message:
    Set the type of buffer object to GRN_UVECTOR after grn_obj_get_value().

  Modified files:
    grngo.c

  Modified: grngo.c (+2 -0)
===================================================================
--- grngo.c    2015-07-31 14:43:46 +0900 (0d137c4)
+++ grngo.c    2015-07-31 14:47:33 +0900 (e81d67f)
@@ -1137,6 +1137,7 @@ _grngo_get_ref(grngo_column *column, size_t src_id,
     size_t i;
     for (i = 0; i < n_ids; i++) {
       grn_obj_get_value(ctx, src, ids[i], src_buf);
+      src_buf->header.type = GRN_UVECTOR;
       if (ctx->rc != GRN_SUCCESS) {
         return ctx->rc;
       }
@@ -1212,6 +1213,7 @@ _grngo_get_value(grngo_column *column, const grn_id *ids, size_t n_ids) {
     size_t i;
     for (i = 0; i < n_ids; i++) {
       grn_obj_get_value(ctx, src, ids[i], src_buf);
+      src_buf->header.type = GRN_UVECTOR;
       if (ctx->rc != GRN_SUCCESS) {
         return ctx->rc;
       }
-------------- next part --------------
HTML����������������������������...
Download 



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