lib/bmg/sql/processor/where.rb in bmg-0.17.3 vs lib/bmg/sql/processor/where.rb in bmg-0.17.4
- old
+ new
@@ -18,10 +18,10 @@
[sexpr[0], sexpr[1]] + non_falsy.map{|nf| apply(nf) }
end
end
def on_select_exp(sexpr)
- if sexpr.group_by_clause
+ if sexpr.group_by_clause || sexpr.has_computed_attributes?
sexpr = builder.from_self(sexpr)
call(sexpr)
else
pred = @predicate.rename(sexpr.desaliaser(true))
if sexpr.where_clause