aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-04-23 20:08:24 +0100
committerJustin Clark-Casey (justincc)2010-04-30 19:05:39 +0100
commitb46380e373d9757174738ea3bb7dc2be6dbcb68b (patch)
treecf8dd47ce196eab74854de62583d70c600048ee2
parentput SQLiteNG classes in their own namespace to avoid confusion (diff)
downloadopensim-SC_OLD-b46380e373d9757174738ea3bb7dc2be6dbcb68b.zip
opensim-SC_OLD-b46380e373d9757174738ea3bb7dc2be6dbcb68b.tar.gz
opensim-SC_OLD-b46380e373d9757174738ea3bb7dc2be6dbcb68b.tar.bz2
opensim-SC_OLD-b46380e373d9757174738ea3bb7dc2be6dbcb68b.tar.xz
dispose of the DbCommand used to execute migrations after we've finished with it rather than within the loop
disposing of it within the loop causes Mono.Data.Sqlite.dll to get upset, and it's the wrong behaviour anyway
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Migration.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs
index e51dc22..2878fd0 100644
--- a/OpenSim/Data/Migration.cs
+++ b/OpenSim/Data/Migration.cs
@@ -149,8 +149,9 @@ namespace OpenSim.Data
149 UpdateVersion(_type, newversion); 149 UpdateVersion(_type, newversion);
150 } 150 }
151 version = newversion; 151 version = newversion;
152 cmd.Dispose();
153 } 152 }
153
154 cmd.Dispose();
154 } 155 }
155 156
156 // private int MaxVersion() 157 // private int MaxVersion()