mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
Do not throw exceptions in SQLite Transaction destructor.
This commit is contained in:
parent
33f98990df
commit
5b159fba89
@ -51,7 +51,8 @@ Transaction::~Transaction()
|
||||
// Validate the result
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user