aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorMelanie2010-08-10 19:34:57 +0100
committerMelanie2010-08-10 19:34:57 +0100
commit75f92faeb4df65eaca9397a8b8370645bbb1018a (patch)
tree98a36c63a23bc7af569b06ff71a6630cf2e4ce9b /OpenSim/Data
parentAvoid truncation of error message during region creation. (diff)
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-75f92faeb4df65eaca9397a8b8370645bbb1018a.zip
opensim-SC_OLD-75f92faeb4df65eaca9397a8b8370645bbb1018a.tar.gz
opensim-SC_OLD-75f92faeb4df65eaca9397a8b8370645bbb1018a.tar.bz2
opensim-SC_OLD-75f92faeb4df65eaca9397a8b8370645bbb1018a.tar.xz
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/Migration.cs5
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs3
2 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs
index c177097..86531d9 100644
--- a/OpenSim/Data/Migration.cs
+++ b/OpenSim/Data/Migration.cs
@@ -407,9 +407,8 @@ scan_old_style:
407 } 407 }
408 408
409 if (migrations.Count < 1) 409 if (migrations.Count < 1)
410 { 410 m_log.DebugFormat("[MIGRATIONS]: {0} data tables already up to date at revision {1}", _type, after);
411 m_log.InfoFormat("[MIGRATIONS]: {0} up to date, no migrations to apply", _type); 411
412 }
413 return migrations; 412 return migrations;
414 } 413 }
415 } 414 }
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())