[Groonga-commit] groonga/groonga [master] grn_obj_reinit() supports geo point data types:

Back to archive index

null+****@clear***** null+****@clear*****
2010年 7月 6日 (火) 14:06:13 JST


Kouhei Sutou	2010-07-06 05:06:13 +0000 (Tue, 06 Jul 2010)

  New Revision: b58f245d56f98aee8b22e9008c63c1416a7c7e8d

  Log:
    grn_obj_reinit() supports geo point data types:
    
    geo point data types: GRN_DB_TOKYO_GEO_POINT and GRN_DB_WGS84_GEO_POINT.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -0)
===================================================================
--- lib/db.c    2010-07-06 05:00:37 +0000 (0689380)
+++ lib/db.c    2010-07-06 05:06:13 +0000 (52985cb)
@@ -5780,6 +5780,8 @@ grn_obj_reinit(grn_ctx *ctx, grn_obj *obj, grn_id domain, unsigned char flags)
     case GRN_DB_UINT64 :
     case GRN_DB_FLOAT :
     case GRN_DB_TIME :
+    case GRN_DB_TOKYO_GEO_POINT :
+    case GRN_DB_WGS84_GEO_POINT :
       if (obj->header.type == GRN_VECTOR) { VECTOR_CLEAR(ctx,obj); }
       obj->header.type = (flags & GRN_OBJ_VECTOR) ? GRN_UVECTOR : GRN_BULK;
       obj->header.domain = domain;




Groonga-commit メーリングリストの案内
Back to archive index