[Groonga-commit] droonga/fluent-plugin-droonga at bde6b0e [master] schema: Check equality with inner data values

Back to archive index

Yoji Shidara null+****@clear*****
Tue Feb 18 14:25:14 JST 2014


Yoji Shidara	2014-02-18 14:25:14 +0900 (Tue, 18 Feb 2014)

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

  Message:
    schema: Check equality with inner data values

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

  Modified: lib/droonga/catalog/schema.rb (+5 -5)
===================================================================
--- lib/droonga/catalog/schema.rb    2014-02-18 14:19:12 +0900 (90a4eca)
+++ lib/droonga/catalog/schema.rb    2014-02-18 14:25:14 +0900 (e23cda3)
@@ -17,7 +17,7 @@ module Droonga
   module Catalog
     class Schema
       class Column
-        attr_reader :name
+        attr_reader :name, :data
         def initialize(name, data)
           @name = name
           @data = data
@@ -25,13 +25,13 @@ module Droonga
 
         def ==(other)
           self.class == other.class and
-            name == other.name
-          # TODO should consider @data
+            name == other.name and
+            data == other.data
         end
       end
 
       class Table
-        attr_reader :name, :columns
+        attr_reader :name, :columns, :data
         def initialize(name, data)
           @name = name
           @data = data
@@ -44,7 +44,7 @@ module Droonga
         def ==(other)
           self.class == other.class and
             name == other.name and
-            columns == other.columns
+            data == other.data
         end
 
         def type
-------------- next part --------------
HTML����������������������������...
다운로드 



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