1
0
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:
Sandu Liviu Catalin 2016-11-13 09:31:23 +02:00
parent 33f98990df
commit 5b159fba89

View File

@ -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());
}
}