diff options
author | Machiavelli <none@none> | 2010-12-23 16:05:43 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-23 16:05:43 +0100 |
commit | 76e111fa073d0074241242334983b5e7d8f64c2d (patch) | |
tree | e75d1de9b13cc8767cc351e886854808e07d0566 /src/server/shared/Database/PreparedStatement.h | |
parent | b6724bea03f6421b7168f098554cd4c43f5e75f3 (diff) |
Core/DBLayer: Allow asynchronous queries with callbacks to be executed in prepared statement format as well.
+ Cleanup and documentation
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Database/PreparedStatement.h')
-rwxr-xr-x | src/server/shared/Database/PreparedStatement.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <ace/Future.h> //- 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<PreparedQueryResult> 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 |