| 247 | } |
| 248 | |
| 249 | QSqlQuery Sql::preparedQueryThread(const QString &query, const QString &dbName, bool forwardOnly) |
| 250 | { |
| 251 | QSqlQuery sqlQuery(QSqlDatabase::database(databaseNameThread(dbName))); |
| 252 | sqlQuery.setForwardOnly(forwardOnly); |
| 253 | if (!sqlQuery.prepare(query)) { |
| 254 | qCCritical(C_SQL) << "Failed to prepare query:" << query |
| 255 | << sqlQuery.lastError().databaseText(); |
| 256 | } |
| 257 | return sqlQuery; |
| 258 | } |
| 259 | |
| 260 | QString Sql::databaseNameThread(const QString &dbName) |
| 261 | { |
nothing calls this directly
no outgoing calls
no test coverage detected