[Groonga-commit] ranguba/groonga-client at 73af948 [master] schema: accept null value type

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Mar 9 13:42:02 JST 2017


Kouhei Sutou	2017-03-09 13:42:02 +0900 (Thu, 09 Mar 2017)

  New Revision: 73af9486f5c265a6889b66096d19e5ffb5096622
  https://github.com/ranguba/groonga-client/commit/73af9486f5c265a6889b66096d19e5ffb5096622

  Message:
    schema: accept null value type

  Modified files:
    lib/groonga/client/response/schema.rb

  Modified: lib/groonga/client/response/schema.rb (+2 -1)
===================================================================
--- lib/groonga/client/response/schema.rb    2017-03-03 08:49:15 +0900 (1230751)
+++ lib/groonga/client/response/schema.rb    2017-03-09 13:42:02 +0900 (e68463c)
@@ -202,7 +202,8 @@ module Groonga
             when :indexes
               super(key, coerce_indexes(value))
             when :value_type
-              super(key, ValueType.new(value))
+              value = ValueType.new(value) unless value.nil?
+              super(key, value)
             else
               super
             end
-------------- next part --------------
HTML����������������������������...
Download 



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