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
0.6.9
Justin Clark-Casey (justincc) 2010-04-23 20:08:24 +01:00
parent a90054aa16
commit b46380e373
1 changed files with 2 additions and 1 deletions

View File

@ -149,8 +149,9 @@ namespace OpenSim.Data
UpdateVersion(_type, newversion); UpdateVersion(_type, newversion);
} }
version = newversion; version = newversion;
cmd.Dispose();
} }
cmd.Dispose();
} }
// private int MaxVersion() // private int MaxVersion()