FIX: Make DBHelper.find build valid query (#19408)
This commit is contained in:
parent
9b321b98a5
commit
aad7a14b36
|
@ -109,7 +109,7 @@ class DbHelper
|
||||||
rows = DB.query(<<~SQL, like: like)
|
rows = DB.query(<<~SQL, like: like)
|
||||||
SELECT \"#{r.column_name}\"
|
SELECT \"#{r.column_name}\"
|
||||||
FROM \"#{r.table_name}\"
|
FROM \"#{r.table_name}\"
|
||||||
WHERE \""#{r.column_name}"\" LIKE :like
|
WHERE \"#{r.column_name}\" LIKE :like
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
if rows.size > 0
|
if rows.size > 0
|
||||||
|
|
Loading…
Reference in New Issue