From 65ef38963ddc60e05491ca9d3e2685913c0038bb Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 22 Dec 2008 10:59:38 -0600 Subject: *The last merge from Mangos TBC. Update to Mangos v0.12. --HG-- branch : trunk --- src/shared/Database/SqlOperations.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/shared/Database/SqlOperations.cpp') diff --git a/src/shared/Database/SqlOperations.cpp b/src/shared/Database/SqlOperations.cpp index b229b9a5918..42094229b17 100644 --- a/src/shared/Database/SqlOperations.cpp +++ b/src/shared/Database/SqlOperations.cpp @@ -81,15 +81,16 @@ void SqlResultQueue::Update() } } -void SqlQueryHolder::Execute(Trinity::IQueryCallback * callback, SqlDelayThread *thread, SqlResultQueue *queue) +bool SqlQueryHolder::Execute(Trinity::IQueryCallback * callback, SqlDelayThread *thread, SqlResultQueue *queue) { if(!callback || !thread || !queue) - return; + return false; /// delay the execution of the queries, sync them with the delay thread /// which will in turn resync on execution (via the queue) and call back SqlQueryHolderEx *holderEx = new SqlQueryHolderEx(this, callback, queue); thread->Delay(holderEx); + return true; } bool SqlQueryHolder::SetQuery(size_t index, const char *sql) -- cgit v1.2.3