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:
Machiavelli
2010-09-11 21:10:54 +02:00
parent dacf427ea3
commit a41e99223e
79 changed files with 436 additions and 428 deletions

View File

@@ -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())