From 31aef4e82b2e746837a6ef0fcd8d3f1b7385bc8e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 14 Nov 2019 06:34:44 +0000 Subject: work on previus 2 patchs --- OpenSim/Data/MySQL/MySQLRegionData.cs | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'OpenSim/Data/MySQL') diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index 12064a3..9115e93 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs @@ -81,15 +81,12 @@ namespace OpenSim.Data.MySQL } } - //BA MOD.... public RegionData GetSpecific(string regionName, UUID scopeID) { string command = "select * from `" + m_Realm + "` where regionName = ?regionName"; if (scopeID != UUID.Zero) command += " and ScopeID = ?scopeID"; - //command += " order by regionName"; - using (MySqlCommand cmd = new MySqlCommand(command)) { cmd.Parameters.AddWithValue("?regionName", regionName); @@ -104,27 +101,8 @@ namespace OpenSim.Data.MySQL } - public RegionData Get(int posX, int posY, UUID scopeID) + public RegionData Get(int posX, int posY, UUID scopeID) { -/* fixed size regions - string command = "select * from `"+m_Realm+"` where locX = ?posX and locY = ?posY"; - if (scopeID != UUID.Zero) - command += " and ScopeID = ?scopeID"; - - using (MySqlCommand cmd = new MySqlCommand(command)) - { - cmd.Parameters.AddWithValue("?posX", posX.ToString()); - cmd.Parameters.AddWithValue("?posY", posY.ToString()); - cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString()); - - List ret = RunCommand(cmd); - if (ret.Count == 0) - return null; - - return ret[0]; - } -*/ - // extend database search for maximum region size area string command = "select * from `" + m_Realm + "` where locX between ?startX and ?endX and locY between ?startY and ?endY"; if (scopeID != UUID.Zero) command += " and ScopeID = ?scopeID"; -- cgit v1.1