aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-09-25 19:19:01 +0100
committerJustin Clark-Casey (justincc)2009-09-25 19:19:01 +0100
commit0bdf75637ff67ee443fa5c4d335c76ca594c254a (patch)
tree52c546b2118101b7bb82ccc7dee273573c8fa0a2 /OpenSim/Data/MySQL
parentDon't preserve full user profile details within iars for now (diff)
parentMore small changes to FlotsamAssetCache as per mcortez' request. (diff)
downloadopensim-SC_OLD-0bdf75637ff67ee443fa5c4d335c76ca594c254a.zip
opensim-SC_OLD-0bdf75637ff67ee443fa5c4d335c76ca594c254a.tar.gz
opensim-SC_OLD-0bdf75637ff67ee443fa5c4d335c76ca594c254a.tar.bz2
opensim-SC_OLD-0bdf75637ff67ee443fa5c4d335c76ca594c254a.tar.xz
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs15
1 files changed, 3 insertions, 12 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index ced26a4..e13e12c 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -77,7 +77,7 @@ namespace OpenSim.Data.MySQL
77 cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString()); 77 cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString());
78 78
79 List<RegionData> ret = RunCommand(cmd); 79 List<RegionData> ret = RunCommand(cmd);
80 if (ret == null) 80 if (ret.Count == 0)
81 return null; 81 return null;
82 82
83 return ret[0]; 83 return ret[0];
@@ -95,7 +95,7 @@ namespace OpenSim.Data.MySQL
95 cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString()); 95 cmd.Parameters.AddWithValue("?scopeID", scopeID.ToString());
96 96
97 List<RegionData> ret = RunCommand(cmd); 97 List<RegionData> ret = RunCommand(cmd);
98 if (ret == null) 98 if (ret.Count == 0)
99 return null; 99 return null;
100 100
101 return ret[0]; 101 return ret[0];
@@ -170,10 +170,7 @@ namespace OpenSim.Data.MySQL
170 result.Close(); 170 result.Close();
171 CloseReaderCommand(cmd); 171 CloseReaderCommand(cmd);
172 172
173 if (retList.Count > 0) 173 return retList;
174 return retList;
175
176 return null;
177 } 174 }
178 175
179 public bool Store(RegionData data) 176 public bool Store(RegionData data)
@@ -182,12 +179,6 @@ namespace OpenSim.Data.MySQL
182 data.Data.Remove("uuid"); 179 data.Data.Remove("uuid");
183 if (data.Data.ContainsKey("ScopeID")) 180 if (data.Data.ContainsKey("ScopeID"))
184 data.Data.Remove("ScopeID"); 181 data.Data.Remove("ScopeID");
185 if (data.Data.ContainsKey("regionName"))
186 data.Data.Remove("regionName");
187 if (data.Data.ContainsKey("posX"))
188 data.Data.Remove("posX");
189 if (data.Data.ContainsKey("posY"))
190 data.Data.Remove("posY");
191 182
192 string[] fields = new List<string>(data.Data.Keys).ToArray(); 183 string[] fields = new List<string>(data.Data.Keys).ToArray();
193 184