mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Do not throw exceptions in SQLite Transaction destructor.
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user