aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLRegionData.cs
diff options
context:
space:
mode:
authorJohn Hurliman2009-10-05 16:39:40 -0700
committerJohn Hurliman2009-10-05 16:39:40 -0700
commit672036937671a69426a12936c69efcb54d029e86 (patch)
tree25c322d9a2bad9f9cce2fff3569cbc0074304f33 /OpenSim/Data/MySQL/MySQLRegionData.cs
parentMake sure that keys exist in arrays before trying to access them. (diff)
downloadopensim-SC-672036937671a69426a12936c69efcb54d029e86.zip
opensim-SC-672036937671a69426a12936c69efcb54d029e86.tar.gz
opensim-SC-672036937671a69426a12936c69efcb54d029e86.tar.bz2
opensim-SC-672036937671a69426a12936c69efcb54d029e86.tar.xz
Added CloseDBConnection() to replace the old CloseReaderCommand(). This will close the MySQLConnection attached to a MySQLCommand. I'm not sure if this accounts for every time a database connection needs to be closed, but it matches up 1:1 with the places where the database connection was previously being closed
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index 04b24b6..3fe27d5 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -172,6 +172,8 @@ namespace OpenSim.Data.MySQL
172 172
173 retList.Add(ret); 173 retList.Add(ret);
174 } 174 }
175
176 CloseDBConnection(cmd);
175 } 177 }
176 178
177 return retList; 179 return retList;