lib/sql_tree/node/join.rb in sql_tree-0.0.2 vs lib/sql_tree/node/join.rb in sql_tree-0.0.3
- old
+ new
@@ -13,11 +13,11 @@
join_sql << "JOIN #{table_reference.to_sql} "
join_sql << "ON #{join_expression.to_sql}"
join_sql
end
- def table
+ def table
table_reference.table
end
def table_alias
table_reference.table_alias
@@ -41,10 +41,10 @@
return join
end
def ==(other)
- other.table = self.table && other.table_alias == self.table_alias &&
+ other.table = self.table && other.table_alias == self.table_alias &&
other.join_type == self.join_type && other.join_expression == self.join_expression
end
end
end