[Groonga-commit] groonga/groonga at 91c1a89 [master] Remove duplicated code

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Nov 8 23:21:05 JST 2014


Kouhei Sutou	2014-11-08 23:21:05 +0900 (Sat, 08 Nov 2014)

  New Revision: 91c1a89e14fb79dafd0ac7db91f6ae6de10f140b
  https://github.com/groonga/groonga/commit/91c1a89e14fb79dafd0ac7db91f6ae6de10f140b

  Message:
    Remove duplicated code

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -6)
===================================================================
--- lib/db.c    2014-11-08 22:36:31 +0900 (84a8f55)
+++ lib/db.c    2014-11-08 23:21:05 +0900 (56069a2)
@@ -4553,12 +4553,7 @@ grn_obj_get_range_info(grn_ctx *ctx, grn_obj *obj,
         *range_id = GRN_DB_INT32;
         break;
       case GRN_ACCESSOR_GET_COLUMN_VALUE :
-        if (GRN_DB_OBJP(a->obj)) {
-          *range_id = DB_OBJ(a->obj)->range;
-          if (grn_column_is_vector(ctx, a->obj)) {
-            *range_flags = GRN_OBJ_VECTOR;
-          }
-        }
+        grn_obj_get_range_info(ctx, a->obj, range_id, range_flags);
         break;
       case GRN_ACCESSOR_GET_KEY :
         if (GRN_DB_OBJP(a->obj)) { *range_id = DB_OBJ(a->obj)->header.domain; }
-------------- next part --------------
HTML����������������������������...
Download 



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