mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-11 14:27:09 +01:00
Do not throw exceptions in SQLite Transaction destructor.
This commit is contained in:
1 parent
33f98990df
commit
5b159fba89
1 file changed
+2
-1
@@ -51,7 +51,8 @@ Transaction::~Transaction()
|
|||||||
// Validate the result
|
// Validate the result
|
||||||
if (m_Handle->mStatus != SQLITE_OK)
|
if (m_Handle->mStatus != SQLITE_OK)
|
||||||
{
|
{
|
||||||
STHROWF("Unable to rollback transaction [%s]", m_Handle->ErrMsg());
|
// We cannot throw exceptions in destructor
|
||||||
|
SqMod_LogErr("Unable to rollback transaction [%s]", m_Handle->ErrMsg());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user