Core/DBLayer: Add method DirectExecute for synchronous execution of prepared statements (without resultset)
Author: [M]axx --HG-- branch : trunk
This commit is contained in:
@@ -279,6 +279,13 @@ class DatabaseWorkerPool
|
||||
PreparedStatementTask* task = new PreparedStatementTask(stmt);
|
||||
Enqueue(task);
|
||||
}
|
||||
|
||||
void DirectExecute(PreparedStatement* stmt)
|
||||
{
|
||||
T* t = GetFreeConnection();
|
||||
t->Execute(stmt);
|
||||
t->Unlock();
|
||||
}
|
||||
|
||||
void escape_string(std::string& str)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user