aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel')
-rw-r--r--lib/arel/nodes/binary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/nodes/binary.rb b/lib/arel/nodes/binary.rb
index 4eccba2765..fdfcab2d3f 100644
--- a/lib/arel/nodes/binary.rb
+++ b/lib/arel/nodes/binary.rb
@@ -18,7 +18,7 @@ module Arel
#
# Maybe we should just use `Table.engine`? :'(
def to_sql
- viz = Visitors::ToSql.new left.relation.engine
+ viz = Visitors::ToSql.new Table.engine
viz.accept self
end
end