mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-04-25 21:57:12 +02: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
|
// 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user