*The last merge from Mangos TBC. Update to Mangos v0.12.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-22 10:59:38 -06:00
parent f7dd2df795
commit 65ef38963d
15 changed files with 214 additions and 171 deletions

View File

@@ -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)