[Groonga-commit] groonga/groonga at 3d25fc5 [master] mruby: support float bulk

Zurück zum Archiv-Index

Naoya Murakami null+****@clear*****
Sun Jul 24 19:00:14 JST 2016


Naoya Murakami	2016-07-24 19:00:14 +0900 (Sun, 24 Jul 2016)

  New Revision: 3d25fc5bf3da4d1adf1d029f3e8fd267d15da0cc
  https://github.com/groonga/groonga/commit/3d25fc5bf3da4d1adf1d029f3e8fd267d15da0cc

  Merged 027c47a: Merge pull request #587 from naoa/support-mrb-bulk-float

  Message:
    mruby: support float bulk

  Modified files:
    lib/mrb/mrb_bulk.c

  Modified: lib/mrb/mrb_bulk.c (+7 -0)
===================================================================
--- lib/mrb/mrb_bulk.c    2016-07-22 11:57:05 +0900 (3bb967d)
+++ lib/mrb/mrb_bulk.c    2016-07-24 19:00:14 +0900 (f833c5d)
@@ -173,6 +173,13 @@ grn_mrb_value_from_bulk(mrb_state *mrb, grn_obj *bulk)
       }
     }
     break;
+  case GRN_DB_FLOAT :
+    {
+      double value;
+      value = GRN_FLOAT_VALUE(bulk);
+      mrb_value_ = mrb_float_value(mrb, value);
+    }
+    break;
   case GRN_DB_TIME :
     {
       int64_t value;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index