mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-26 03:42:37 +01:00
Core/DBLayer:
* Rename QueryResult class to ResultSet * Rename QueryResult_AutoPtr to QueryResult * Declare ACE refcounted auto pointer for PreparedResultSet class --HG-- branch : trunk
This commit is contained in:
@@ -70,7 +70,7 @@ bool SQLQueryHolder::SetQuery(size_t index, const char *sql)
|
||||
}
|
||||
|
||||
/// not executed yet, just stored (it's not called a holder for nothing)
|
||||
m_queries[index] = SQLResultPair(strdup(sql), QueryResult_AutoPtr(NULL));
|
||||
m_queries[index] = SQLResultPair(strdup(sql), QueryResult(NULL));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ bool SQLQueryHolder::SetPQuery(size_t index, const char *format, ...)
|
||||
return SetQuery(index, szQuery);
|
||||
}
|
||||
|
||||
QueryResult_AutoPtr SQLQueryHolder::GetResult(size_t index)
|
||||
QueryResult SQLQueryHolder::GetResult(size_t index)
|
||||
{
|
||||
if (index < m_queries.size())
|
||||
{
|
||||
@@ -111,10 +111,10 @@ QueryResult_AutoPtr SQLQueryHolder::GetResult(size_t index)
|
||||
return m_queries[index].second;
|
||||
}
|
||||
else
|
||||
return QueryResult_AutoPtr(NULL);
|
||||
return QueryResult(NULL);
|
||||
}
|
||||
|
||||
void SQLQueryHolder::SetResult(size_t index, QueryResult_AutoPtr result)
|
||||
void SQLQueryHolder::SetResult(size_t index, QueryResult result)
|
||||
{
|
||||
/// store the result in the holder
|
||||
if (index < m_queries.size())
|
||||
|
||||
Reference in New Issue
Block a user