Make Jamendo search work again

This commit is contained in:
David Sansome 2010-11-27 19:37:09 +00:00
parent 7690224859
commit bea4b39020
1 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ LibraryQuery::LibraryQuery(const QueryOptions& options)
query += token + "* ";
}
where_clauses_ << "fts.%fts_table MATCH ?";
where_clauses_ << "fts.%fts_table_noprefix MATCH ?";
bound_values_ << query;
join_with_fts_ = true;
}
@ -98,6 +98,7 @@ QSqlError LibraryQuery::Exec(QSqlDatabase db, const QString& songs_table,
sql += " LIMIT " + QString::number(limit_);
sql.replace("%songs_table", songs_table);
sql.replace("%fts_table_noprefix", fts_table.section('.', -1, -1));
sql.replace("%fts_table", fts_table);
query_ = QSqlQuery(sql, db);