Core/DBLayer: Add method DirectExecute for synchronous execution of prepared statements (without resultset)

Author: [M]axx

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-11-21 18:50:11 +01:00
parent 92a7d02184
commit 733b72d29c
@@ -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())