mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-27 15:49:43 +01:00
Fix collection query
This commit is contained in:
parent
81caec99b7
commit
87e543b5ef
@ -62,7 +62,8 @@ CollectionQuery::CollectionQuery(const QueryOptions &options)
|
||||
QString subtoken = token.section(':', 1, -1);
|
||||
subtoken.replace(":", " ");
|
||||
subtoken = subtoken.trimmed();
|
||||
query += "fts" + columntoken + subtoken + "* ";
|
||||
if (!subtoken.isEmpty())
|
||||
query += "fts" + columntoken + subtoken + "* ";
|
||||
}
|
||||
else {
|
||||
token.replace(":", " ");
|
||||
@ -74,10 +75,11 @@ CollectionQuery::CollectionQuery(const QueryOptions &options)
|
||||
query += token + "* ";
|
||||
}
|
||||
}
|
||||
|
||||
where_clauses_ << "fts.%fts_table_noprefix MATCH ?";
|
||||
bound_values_ << query;
|
||||
join_with_fts_ = true;
|
||||
if (!query.isEmpty()) {
|
||||
where_clauses_ << "fts.%fts_table_noprefix MATCH ?";
|
||||
bound_values_ << query;
|
||||
join_with_fts_ = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (options.max_age() != -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user