mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-13 22:09:23 -06:00
reconnect at beginning of transaction
This commit is contained in:
@@ -21,6 +21,8 @@ bool ManagesTransactions::beginTransaction()
|
||||
{
|
||||
Q_ASSERT(m_inTransaction == false);
|
||||
|
||||
databaseConnection().reconnectIfMissingConnection();
|
||||
|
||||
static const auto query = QStringLiteral("START TRANSACTION");
|
||||
|
||||
// Elapsed timer needed
|
||||
|
||||
Reference in New Issue
Block a user