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
@@ -38,7 +38,7 @@ void WaypointStore::Free()
void WaypointStore::Load()
{
QueryResult_AutoPtr result = WorldDatabase.Query("SELECT COUNT(id) FROM waypoint_data");
QueryResult result = WorldDatabase.Query("SELECT COUNT(id) FROM waypoint_data");
if (!result)
{
sLog.outError("an error occured while loading the table `waypoint_data` (maybe it doesn't exist ?)");
@@ -107,7 +107,7 @@ void WaypointStore::UpdatePath(uint32 id)
if (waypoint_map.find(id)!= waypoint_map.end())
waypoint_map[id]->clear();
QueryResult_AutoPtr result;
QueryResult result;
result = WorldDatabase.PQuery("SELECT point,position_x,position_y,position_z,move_flag,delay,action,action_chance FROM waypoint_data WHERE id = %u ORDER BY point", id);