aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-09-03 17:30:23 +0200
committerMachiavelli <none@none>2010-09-03 17:30:23 +0200
commit5469af37754e13305070ccab0739fdb8016b9e8a (patch)
treeab9a15ab5a5903ba27bfcafda22c5929b0c3ecde /src/server/shared/Database/MySQLConnection.cpp
parentd207f0d9a50658ab5ec48ea40c225deb295f73ab (diff)
Core/DBLayer: Add an assert to detetct calls to invalid prepared statements.
--HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.cpp')
-rw-r--r--src/server/shared/Database/MySQLConnection.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.cpp b/src/server/shared/Database/MySQLConnection.cpp
index 3eb8cb3d032..64b2cea5d4b 100644
--- a/src/server/shared/Database/MySQLConnection.cpp
+++ b/src/server/shared/Database/MySQLConnection.cpp
@@ -310,6 +310,7 @@ void MySQLConnection::CommitTransaction()
MySQLPreparedStatement* MySQLConnection::GetPreparedStatement(uint32 index)
{
+ ASSERT(index < m_stmts.size());
return m_stmts[index];
}