mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix binding values to search query
This was broken while doing a rebase
This commit is contained in:
parent
8efb9912ee
commit
255e51da86
@ -717,17 +717,17 @@ void FolderModelProxy::setupFilteredModelData()
|
|||||||
QLOG_ERROR() << "not implemented";
|
QLOG_ERROR() << "not implemented";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (const std::exception &e) {
|
|
||||||
QLOG_ERROR() << "Unable to parse query: " << e.what();
|
|
||||||
}
|
|
||||||
|
|
||||||
selectQuery.prepare(queryString.c_str());
|
selectQuery.prepare(queryString.c_str());
|
||||||
selectQuery.bindValues(selectQuery);
|
result.bindValues(selectQuery);
|
||||||
|
|
||||||
selectQuery.exec();
|
selectQuery.exec();
|
||||||
QLOG_DEBUG() << selectQuery.lastError() << "--";
|
QLOG_DEBUG() << selectQuery.lastError() << "--";
|
||||||
|
|
||||||
setupFilteredModelData(selectQuery, rootItem);
|
setupFilteredModelData(selectQuery, rootItem);
|
||||||
|
} catch (const std::exception &e) {
|
||||||
|
QLOG_ERROR() << "Unable to parse query: " << e.what();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
QSqlDatabase::removeDatabase(db.connectionName());
|
QSqlDatabase::removeDatabase(db.connectionName());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user