rails/arel

named_function.eq(nil) produce wrong sql

kmmndr opened this issue · 0 comments

Using Arel v6.0.4
Testing equality on named function produce wrong SQL code if value tested is nil.

Nodes::NamedFunction.new('omg', [Arel.star]).eq(nil)
=> omg(*) = NULL