Fix library search queries on fts columns (#6219)

This fixes a regression introduced in 8818ba340a.
This commit is contained in:
Mattias Andersson 2018-11-29 15:36:01 +01:00 committed by John Maguire
parent 289ea31f8c
commit 587e72b8c3
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
if (Song::kFtsColumns.contains(
"fts" + columntoken,
Qt::CaseInsensitive)) { // Is it a FTS column?
query += "fts" + columntoken + subtoken + "* ";
query += "fts" + columntoken + ":" + subtoken + "* ";
} else if (Song::kColumns.contains(columntoken, Qt::CaseInsensitive)) {
// We need to extract the operator and the value from the subtoken
QRegExp operatorRe("^(" + kNumericCompOperators.join("|") + ")(.*)");