Fixed SQL error.
This commit is contained in:
parent
dbb4807149
commit
dc8d9b2461
1 changed files with 1 additions and 1 deletions
|
@ -503,7 +503,7 @@ condition example
|
||||||
else
|
else
|
||||||
# rubocop:disable Style/IfInsideElse
|
# rubocop:disable Style/IfInsideElse
|
||||||
if selector['value'].nil?
|
if selector['value'].nil?
|
||||||
query += "#{attribute} NOT NULL"
|
query += "#{attribute} IS NOT NULL"
|
||||||
else
|
else
|
||||||
query += "#{attribute} IN (?)"
|
query += "#{attribute} IN (?)"
|
||||||
bind_params.push selector['value']
|
bind_params.push selector['value']
|
||||||
|
|
Loading…
Reference in a new issue