Fix casing of LIKE in comment

This commit is contained in:
Ryan Roden-Corrent 2017-12-12 20:26:30 -05:00
parent 158cfa1194
commit 8358c76f86

View File

@ -76,7 +76,7 @@ class HistoryCategory(QSqlQueryModel):
# build a where clause to match all of the words in any order
# given the search term "a b", the WHERE clause would be:
# ((url || title) like '%a%') AND ((url || title) LIKE '%b')
# ((url || title) LIKE '%a%') AND ((url || title) LIKE '%b')
wheres = ' AND '.join(
"(url || title) LIKE :{} escape '\\'".format(i)
for i in range(len(words)))