Core/DBLayer:
- A few prepared statement implementations in authsocket as example. - Add an ASSERT in MySQLConnection::Execute(PreparedStatement*) to catch faulty created statements --HG-- branch : trunk
This commit is contained in:
1 parent
2c1c391597
commit
7982cc0f7d
4 files changed
+26
-3
No files matched your search
@@ -191,6 +191,7 @@ bool MySQLConnection::Execute(PreparedStatement* stmt)
|
||||
|
||||
uint32 index = stmt->m_index;
|
||||
MySQLPreparedStatement* m_mStmt = GetPreparedStatement(index);
|
||||
ASSERT(m_mStmt); // Can only be null if preparation failed, server side error or bad query
|
||||
m_mStmt->m_stmt = stmt; // Cross reference them for debug output
|
||||
stmt->m_stmt = m_mStmt;
|
||||
|
||||
|
||||
Reference in new issue
Block a user