forked from qt-creator/qt-creator
Clang: Fix reset for write and execute in the sqlite statement
We were not reset a statement if we got an exception. There are now test for it. Change-Id: Ife7b4437fece9369767605ba7387bd0564c1bb8d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -64,6 +64,7 @@ public:
|
||||
{
|
||||
m_interface.commit();
|
||||
m_isAlreadyCommited = true;
|
||||
m_locker.unlock();
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -76,7 +77,7 @@ protected:
|
||||
|
||||
protected:
|
||||
TransactionInterface &m_interface;
|
||||
std::lock_guard<TransactionInterface> m_locker{m_interface};
|
||||
std::unique_lock<TransactionInterface> m_locker{m_interface};
|
||||
bool m_isAlreadyCommited = false;
|
||||
bool m_rollback = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user