Susumu Yata
null+****@clear*****
Fri Aug 26 17:24:25 JST 2016
Susumu Yata 2016-07-19 16:04:03 +0900 (Tue, 19 Jul 2016) New Revision: a9f4a15eabe1bffce2b25aa821e518a8ef31282f https://github.com/groonga/groonga/commit/a9f4a15eabe1bffce2b25aa821e518a8ef31282f Message: Copy type flags except GRN_OBJ_KEY_MASK in grn_column_create() This change is because GRN_OBJ_KEY_FLOAT and GRN_OBJ_KEY_GEO_POINT contain the 5th bit (0x01 << 4) and it is used as GRN_OBJ_COMPRESS_ZLIB. Columns of Float, WGS84GeoPoint and TokyoGeoPoint were created with GRN_OBJ_COMPRESS_ZLIB even if the flag was not specified. GitHub: #586 Reported by Naoya Murakami. Thanks!!! Modified files: lib/db.c Modified: lib/db.c (+1 -1) =================================================================== --- lib/db.c 2016-07-19 16:03:35 +0900 (4c26aee) +++ lib/db.c 2016-07-19 16:04:03 +0900 (d8fc06f) @@ -4800,7 +4800,7 @@ grn_column_create(grn_ctx *ctx, grn_obj *table, case GRN_TYPE : { grn_db_obj *t = (grn_db_obj *)type; - flags |= t->header.flags; + flags |= t->header.flags & ~GRN_OBJ_KEY_MASK; value_size = GRN_TYPE_SIZE(t); } break; -------------- next part -------------- HTML����������������������������... Descargar