Skip to content

Commit

Permalink
FIX: Make DBHelper.find build valid query (discourse#19408)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBack authored Jan 10, 2023
1 parent 9b321b9 commit aad7a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def self.find(needle, anchor_left: false, anchor_right: false, excluded_tables:
rows = DB.query(<<~SQL, like: like)
SELECT \"#{r.column_name}\"
FROM \"#{r.table_name}\"
WHERE \""#{r.column_name}"\" LIKE :like
WHERE \"#{r.column_name}\" LIKE :like
SQL

if rows.size > 0
Expand Down

0 comments on commit aad7a14

Please sign in to comment.