Core/DBLayer: Fix a possible crash in ProcessQueryCallback functions.
Closes issue #5095 --HG-- branch : trunk
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
#define QUERYRESULT_H
|
#define QUERYRESULT_H
|
||||||
|
|
||||||
#include <ace/Refcounted_Auto_Ptr.h>
|
#include <ace/Refcounted_Auto_Ptr.h>
|
||||||
#include <ace/Null_Mutex.h>
|
#include <ace/Thread_Mutex.h>
|
||||||
|
|
||||||
#include "Field.h"
|
#include "Field.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
@@ -58,7 +58,7 @@ class ResultSet
|
|||||||
MYSQL_FIELD *m_fields;
|
MYSQL_FIELD *m_fields;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef ACE_Refcounted_Auto_Ptr<ResultSet, ACE_Null_Mutex> QueryResult;
|
typedef ACE_Refcounted_Auto_Ptr<ResultSet, ACE_Thread_Mutex> QueryResult;
|
||||||
|
|
||||||
class PreparedResultSet
|
class PreparedResultSet
|
||||||
{
|
{
|
||||||
@@ -103,7 +103,7 @@ class PreparedResultSet
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef ACE_Refcounted_Auto_Ptr<PreparedResultSet, ACE_Null_Mutex> PreparedQueryResult;
|
typedef ACE_Refcounted_Auto_Ptr<PreparedResultSet, ACE_Thread_Mutex> PreparedQueryResult;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user