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