Fixed SQL error.

This commit is contained in:
Martin Edenhofer 2016-03-09 08:17:49 +01:00
parent dbb4807149
commit dc8d9b2461

View file

@ -503,7 +503,7 @@ condition example
else
# rubocop:disable Style/IfInsideElse
if selector['value'].nil?
query += "#{attribute} NOT NULL"
query += "#{attribute} IS NOT NULL"
else
query += "#{attribute} IN (?)"
bind_params.push selector['value']