aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLRegionData.cs
diff options
context:
space:
mode:
authorDiva Canto2010-08-10 11:14:24 -0700
committerDiva Canto2010-08-10 11:17:38 -0700
commit7741143fb5c7c62355170a2f795561d28b9f589f (patch)
tree8dde2965ca0a31ad6658cb90750ae2e5e87320ee /OpenSim/Data/MySQL/MySQLRegionData.cs
parentEven if all data migratios are up to date, still print the current revision t... (diff)
downloadopensim-SC-7741143fb5c7c62355170a2f795561d28b9f589f.zip
opensim-SC-7741143fb5c7c62355170a2f795561d28b9f589f.tar.gz
opensim-SC-7741143fb5c7c62355170a2f795561d28b9f589f.tar.bz2
opensim-SC-7741143fb5c7c62355170a2f795561d28b9f589f.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 '')
-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 878b8e8..baa948e 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())