lib/alf/sequel/translator.rb in alf-sequel-0.16.0 vs lib/alf/sequel/translator.rb in alf-sequel-0.16.1
- old
+ new
@@ -26,9 +26,10 @@
}
end
def on_set_operator(sexpr)
left, right = apply(sexpr.left), apply(sexpr.right)
+ left = left.from_self if sexpr.left.set_operator?
left.send(sexpr.first, right, all: sexpr.all?, from_self: false)
end
alias :on_union :on_set_operator
alias :on_intersect :on_set_operator
alias :on_except :on_set_operator