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

Method commitTransaction

3rdparty/sqlitex/sqlitedriver.cpp:645–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645bool SQLiteDriver::commitTransaction()
646{
647 if (!isOpen() || isOpenError())
648 return false;
649
650 QSqlQuery q(createResult());
651 if (!q.exec(QLatin1String("COMMIT"))) {
652 setLastError(QSqlError(tr("Unable to commit transaction"),
653 q.lastError().databaseText(), QSqlError::TransactionError));
654 return false;
655 }
656
657 return true;
658}
659
660bool SQLiteDriver::rollbackTransaction()
661{

Callers

nothing calls this directly

Calls 1

execMethod · 0.80

Tested by

no test coverage detected