FIX: Make DBHelper.find build valid query (#19408)

This commit is contained in:
Justin René Back 2023-01-10 21:38:52 +01:00 committed by GitHub
parent 9b321b98a5
commit aad7a14b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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