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
|
||||
# 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']
|
||||
|
|
Loading…
Reference in a new issue