aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/engines/sql/relations/table.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/arel/engines/sql/relations/table.rb b/lib/arel/engines/sql/relations/table.rb
index 0634436280..a409d8223f 100644
--- a/lib/arel/engines/sql/relations/table.rb
+++ b/lib/arel/engines/sql/relations/table.rb
@@ -52,8 +52,9 @@ module Arel
end
def ==(other)
- Table === other and
- name == other.name
+ Table === other and
+ name == other.name and
+ table_alias == other.table_alias
end
end
end