Fix slow library search on sqlite 3.8.
(cherry picked from commit 56dade2598
)
Conflicts:
src/library/libraryquery.cpp
This commit is contained in:
parent
5b4b06f64b
commit
c4b5f000de
|
@ -113,7 +113,8 @@ void LibraryQuery::AddWhere(const QString& column, const QVariant& value,
|
|||
}
|
||||
|
||||
void LibraryQuery::AddCompilationRequirement(bool compilation) {
|
||||
where_clauses_ << QString("effective_compilation = %1").arg(compilation ? 1 : 0);
|
||||
where_clauses_ << QString("+effective_compilation = %1")
|
||||
.arg(compilation ? 1 : 0);
|
||||
}
|
||||
|
||||
QSqlQuery LibraryQuery::Exec(QSqlDatabase db, const QString& songs_table,
|
||||
|
|
Loading…
Reference in New Issue