From 5b159fba89ad0f50895e6ba26956e674788df9e6 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 13 Nov 2016 09:31:23 +0200 Subject: [PATCH] Do not throw exceptions in SQLite Transaction destructor. --- modules/sqlite/Transaction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/sqlite/Transaction.cpp b/modules/sqlite/Transaction.cpp index ae6ee71d..35e981ac 100644 --- a/modules/sqlite/Transaction.cpp +++ b/modules/sqlite/Transaction.cpp @@ -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()); } }