From 1c97319d9c6b8268967254bcf2beb7157f7ff30d Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Tue, 29 Nov 2011 12:00:40 +0100 Subject: [PATCH] Column::Col-fixes (==, ===) --- lib/smql_to_ar.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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