diff options
author | megamage <none@none> | 2008-12-22 10:59:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-22 10:59:38 -0600 |
commit | 65ef38963ddc60e05491ca9d3e2685913c0038bb (patch) | |
tree | 740f287e537982028ac4b0974d4a88aeae9075d8 /src/shared/Database/SqlOperations.cpp | |
parent | f7dd2df7955f5c5d17ee2ad27fb6c9a0f89d7196 (diff) |
*The last merge from Mangos TBC. Update to Mangos v0.12.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Database/SqlOperations.cpp')
-rw-r--r-- | src/shared/Database/SqlOperations.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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) |