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

View File

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

View File

@ -34,7 +34,7 @@ using Mono.Data.Sqlite;
using OpenMetaverse;
using OpenSim.Framework;
namespace OpenSim.Data.SQLite
namespace OpenSim.Data.SQLiteNG
{
/// <summary>
/// An asset storage interface for the SQLite database system