From 3932fc8c83f10c75ec4ea7a671218975de79a85c Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Thu, 19 Aug 2010 00:13:09 +0200 Subject: - Fix Linux build (huge thanks to Aokromes for testing as always) - Some work towards resolving the crash on shutdown by implementing a shutdown task --HG-- branch : trunk --- src/server/shared/Database/SQLOperation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/shared/Database/SQLOperation.h') diff --git a/src/server/shared/Database/SQLOperation.h b/src/server/shared/Database/SQLOperation.h index 0bf08d3e3eb..a8238802e31 100644 --- a/src/server/shared/Database/SQLOperation.h +++ b/src/server/shared/Database/SQLOperation.h @@ -31,13 +31,12 @@ class SQLOperation : public ACE_Method_Request { public: SQLOperation(){}; - int call() + virtual int call() { Execute(); return 0; } virtual bool Execute() = 0; - virtual void SetConnection(MySQLConnection* con) { m_conn = con; } MySQLConnection* m_conn; @@ -102,6 +101,7 @@ class SQLQueryHolderTask : public SQLOperation SQLQueryHolderTask(SQLQueryHolder *holder, QueryResultHolderFuture res) : m_holder(holder), m_result(res){}; bool Execute(); + }; -- cgit v1.2.3