MCPcopy Create free account
hub / github.com/QuiteRSS/quiterss / rollbackTransaction

Method rollbackTransaction

3rdparty/sqlitex/sqlitedriver.cpp:660–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660bool SQLiteDriver::rollbackTransaction()
661{
662 if (!isOpen() || isOpenError())
663 return false;
664
665 QSqlQuery q(createResult());
666 if (!q.exec(QLatin1String("ROLLBACK"))) {
667 setLastError(QSqlError(tr("Unable to rollback transaction"),
668 q.lastError().databaseText(), QSqlError::TransactionError));
669 return false;
670 }
671
672 return true;
673}
674
675QStringList SQLiteDriver::tables(QSql::TableType type) const
676{

Callers

nothing calls this directly

Calls 1

execMethod · 0.80

Tested by

no test coverage detected