From 76e111fa073d0074241242334983b5e7d8f64c2d Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 23 Dec 2010 16:05:43 +0100 Subject: Core/DBLayer: Allow asynchronous queries with callbacks to be executed in prepared statement format as well. + Cleanup and documentation --HG-- branch : trunk --- src/server/shared/Database/PreparedStatement.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/shared/Database/PreparedStatement.h') diff --git a/src/server/shared/Database/PreparedStatement.h b/src/server/shared/Database/PreparedStatement.h index 184c3a1a8da..3a0cd9f0b55 100755 --- a/src/server/shared/Database/PreparedStatement.h +++ b/src/server/shared/Database/PreparedStatement.h @@ -19,6 +19,7 @@ #define _PREPAREDSTATEMENT_H #include "SQLOperation.h" +#include //- Union for data buffer (upper-level bind -> queue -> lower-level bind) union PreparedStatementDataUnion @@ -138,16 +139,21 @@ class MySQLPreparedStatement MYSQL_BIND* m_bind; }; +typedef ACE_Future PreparedQueryResultFuture; + //- Lower-level class, enqueuable operation class PreparedStatementTask : public SQLOperation { public: PreparedStatementTask(PreparedStatement* stmt); + PreparedStatementTask(PreparedStatement* stmt, PreparedQueryResultFuture result); ~PreparedStatementTask(); bool Execute(); protected: PreparedStatement* m_stmt; + bool m_has_result; + PreparedQueryResultFuture m_result; }; #endif \ No newline at end of file -- cgit v1.2.3