diff options
author | Azazel <azazel.kon@gmail.com> | 2011-04-07 15:30:38 +0600 |
---|---|---|
committer | Azazel <azazel.kon@gmail.com> | 2011-04-07 15:30:38 +0600 |
commit | 4db04b63dd0d60c54c775e68ae560f33d159bbb9 (patch) | |
tree | 4c3e44acd86760f917b32b99e1b7358bfa5822a0 /src/server/shared/Database/MySQLConnection.h | |
parent | 770c8a950e8d46139ba28157dfad8ffff1798b20 (diff) |
Core/DBLayer: make use of return result of Connection::Open method and allow core to output all the errors in prepared statements instead of aborting on first error.
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.h')
-rwxr-xr-x | src/server/shared/Database/MySQLConnection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/shared/Database/MySQLConnection.h b/src/server/shared/Database/MySQLConnection.h index 78f29494655..2bee0eaf3a4 100755 --- a/src/server/shared/Database/MySQLConnection.h +++ b/src/server/shared/Database/MySQLConnection.h @@ -121,10 +121,14 @@ class MySQLConnection MySQLPreparedStatement* GetPreparedStatement(uint32 index); void PrepareStatement(uint32 index, const char* sql, ConnectionFlags flags); + bool PrepareStatements(); + virtual void DoPrepareStatements() = 0; + protected: std::vector<MySQLPreparedStatement*> m_stmts; //! PreparedStatements storage PreparedStatementMap m_queries; //! Query storage bool m_reconnecting; //! Are we reconnecting? + bool m_prepareError; //! Was there any error while preparing statements? private: bool _HandleMySQLErrno(uint32 errNo); |