diff --git a/lib/smql_to_ar.rb b/lib/smql_to_ar.rb index fdf32e9..ce3b61f 100644 --- a/lib/smql_to_ar.rb +++ b/lib/smql_to_ar.rb @@ -139,12 +139,11 @@ class SmqlToAR def == other other = Col.new other - @col = other.col && @as == other.col + @col == other.col && @as == other.as end def === other - other = Col.new other - @col == other.col + @col == Col.new( other).col end end