'-' is considered as 'NOT' operator by FTS, leading to unexpected results. Not sure how to escape it, better to replace it for now

This commit is contained in:
Arnaud Bienner 2014-01-16 16:35:09 +01:00
parent f43d1576e3
commit 08a4629565
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
token.remove('(');
token.remove(')');
token.remove('"');
token.replace('-', ' ');
if (token.contains(':')) {
// Only prefix fts if the token is a valid column name.