Kouhei Sutou
null+****@clear*****
Fri Sep 23 18:35:41 JST 2016
Kouhei Sutou 2016-09-23 18:35:41 +0900 (Fri, 23 Sep 2016) New Revision: 42504ffaaee0bb2d4d71d3222612ac7a1351c87c https://github.com/groonga/groonga/commit/42504ffaaee0bb2d4d71d3222612ac7a1351c87c Message: GRN_DB_OBJECT is also a builtin type Modified files: lib/id.c test/unit/core/test-id.c Modified: lib/id.c (+1 -1) =================================================================== --- lib/id.c 2016-09-23 18:35:12 +0900 (ad7f4ed) +++ lib/id.c 2016-09-23 18:35:41 +0900 (5cf96c8) @@ -32,5 +32,5 @@ grn_id_is_builtin(grn_ctx *ctx, grn_id id) grn_bool grn_id_is_builtin_type(grn_ctx *ctx, grn_id id) { - return GRN_DB_BOOL <= id && id <= GRN_DB_WGS84_GEO_POINT; + return GRN_DB_OBJECT <= id && id <= GRN_DB_WGS84_GEO_POINT; } Modified: test/unit/core/test-id.c (+2 -1) =================================================================== --- test/unit/core/test-id.c 2016-09-23 18:35:12 +0900 (5d818ee) +++ test/unit/core/test-id.c 2016-09-23 18:35:41 +0900 (1224648) @@ -121,7 +121,8 @@ data_is_builtin_type(void) "id", G_TYPE_UINT, id, \ NULL) - ADD_DATUM(FALSE, GRN_DB_OBJECT); + ADD_DATUM(FALSE, GRN_DB_DB); + ADD_DATUM(TRUE, GRN_DB_OBJECT); ADD_DATUM(TRUE, GRN_DB_BOOL); ADD_DATUM(TRUE, GRN_DB_INT8); ADD_DATUM(TRUE, GRN_DB_UINT8); -------------- next part -------------- HTML����������������������������... Download