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:
1 parent
dacf427ea3
commit
a41e99223e
79 files changed
+436
-428
No files matched your search
@@ -326,7 +326,7 @@ void MapManager::InitMaxInstanceId()
|
||||
{
|
||||
i_MaxInstanceId = 0;
|
||||
|
||||
QueryResult_AutoPtr result = CharacterDatabase.Query("SELECT MAX(id) FROM instance");
|
||||
QueryResult result = CharacterDatabase.Query("SELECT MAX(id) FROM instance");
|
||||
if (result)
|
||||
i_MaxInstanceId = result->Fetch()[0].GetUInt32();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user