Core/DBLayer: Add an assert in TransactionTask::Execute to make sure valid queries are held
Core/Logging: Tiny cleanup in sLog.outSQLDriver --HG-- branch : trunk
This commit is contained in:
1 parent
94b59b4f0e
commit
fd1c6c5440
2 files changed
+6
-1
No files matched your search
@@ -56,6 +56,7 @@ bool TransactionTask::Execute()
|
||||
while (!queries.empty())
|
||||
{
|
||||
sql = queries.front();
|
||||
ASSERT(sql);
|
||||
if (!m_conn->Execute(sql))
|
||||
{
|
||||
sLog.outSQLDriver("[Warning] Transaction aborted. %u queries not executed.", (uint32)queries.size());
|
||||
|
||||
Reference in new issue
Block a user