Fix sql comment to match updated code.
This commit is contained in:
parent
2e562a926b
commit
bf10f483e1
@ -74,7 +74,8 @@ 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%')
|
||||
where_clause = ' AND '.join(
|
||||
"(url || ' ' || title) LIKE :{} escape '\\'".format(i)
|
||||
for i in range(len(words)))
|
||||
|
Loading…
Reference in New Issue
Block a user