[Groonga-commit] droonga/fluent-plugin-droonga at 698a58b [master] Modify value_type only when it is "Integer"

Back to archive index

Yoji Shidara null+****@clear*****
Wed Feb 26 17:33:24 JST 2014


Yoji Shidara	2014-02-26 17:33:24 +0900 (Wed, 26 Feb 2014)

  New Revision: 698a58b8c0461a0c813f3b0e8d659a0e87736a82
  https://github.com/droonga/fluent-plugin-droonga/commit/698a58b8c0461a0c813f3b0e8d659a0e87736a82

  Message:
    Modify value_type only when it is "Integer"

  Modified files:
    lib/droonga/catalog/schema.rb

  Modified: lib/droonga/catalog/schema.rb (+2 -11)
===================================================================
--- lib/droonga/catalog/schema.rb    2014-02-26 17:31:42 +0900 (a349cde)
+++ lib/droonga/catalog/schema.rb    2014-02-26 17:33:24 +0900 (800f091)
@@ -89,19 +89,10 @@ module Droonga
         end
 
         def value_type_groonga
-          case value_type
-          when "Integer"
+          if value_type == "Integer"
             "Int64"
-          when "Bool",
-               "Float",
-               "Time",
-               "ShortText",
-               "Text",
-               "TokyoGeoPoint",
-               "WGS84GeoPoint"
-            value_type
           else
-            # TODO raise appropriate error
+            value_type
           end
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



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