Core/DBLayer: Convert PQuery() queries to prepared statements
This commit is contained in:
@@ -100,7 +100,12 @@ void WaypointMgr::ReloadPath(uint32 id)
|
||||
_waypointStore.erase(itr);
|
||||
}
|
||||
|
||||
QueryResult result = WorldDatabase.PQuery("SELECT point, position_x, position_y, position_z, orientation, move_flag, delay, action, action_chance FROM waypoint_data WHERE id = %u ORDER BY point", id);
|
||||
PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_SEL_WAYPOINT_DATA_BY_ID);
|
||||
|
||||
stmt->setUInt32(0, id);
|
||||
|
||||
PreparedQueryResult result = WorldDatabase.Query(stmt);
|
||||
|
||||
if (!result)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user