Permalink
Browse files

Fix library search queries on fts columns (#6219)

This fixes a regression introduced in 8818ba3.
  • Loading branch information...
paperbagcorner authored and hatstand committed Nov 29, 2018
1 parent 289ea31 commit 587e72b8c3cfbc3c9490fabe7e59c1c9bd42ea72
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/library/libraryquery.cpp
@@ -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("|") + ")(.*)");

0 comments on commit 587e72b

Please sign in to comment.