aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorDiva Canto2010-08-10 11:14:24 -0700
committerDiva Canto2010-08-10 11:14:24 -0700
commitd74b03a3db9bc42ceba2c0cec856cbae521e4b21 (patch)
tree921fd6a75967b0a70c31169bfde4b255828d83cc /OpenSim/Data
parentupdate version number (diff)
downloadopensim-SC_OLD-d74b03a3db9bc42ceba2c0cec856cbae521e4b21.zip
opensim-SC_OLD-d74b03a3db9bc42ceba2c0cec856cbae521e4b21.tar.gz
opensim-SC_OLD-d74b03a3db9bc42ceba2c0cec856cbae521e4b21.tar.bz2
opensim-SC_OLD-d74b03a3db9bc42ceba2c0cec856cbae521e4b21.tar.xz
Enforce DB limits on region name to 32 chars, or else (not good). Removed a piece of code from Hyperlinker that didn't work anyway. Shortened the hyperlink region name.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index aec37e2..cee630b 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -210,6 +210,9 @@ namespace OpenSim.Data.MySQL
210 if (data.Data.ContainsKey("locY")) 210 if (data.Data.ContainsKey("locY"))
211 data.Data.Remove("locY"); 211 data.Data.Remove("locY");
212 212
213 if (data.RegionName.Length > 32)
214 data.RegionName = data.RegionName.Substring(0, 32);
215
213 string[] fields = new List<string>(data.Data.Keys).ToArray(); 216 string[] fields = new List<string>(data.Data.Keys).ToArray();
214 217
215 using (MySqlCommand cmd = new MySqlCommand()) 218 using (MySqlCommand cmd = new MySqlCommand())