a few more changes on mysql

This commit is contained in:
UbitUmarov
2017-05-06 21:43:22 +01:00
parent 4b2ef46de6
commit c57215687f
4 changed files with 61 additions and 49 deletions

View File

@@ -82,6 +82,7 @@ namespace OpenSim.Data.MySQL
Migration m = new Migration(dbcon, Assembly, "EstateStore");
m.Update();
dbcon.Close();
Type t = typeof(EstateSettings);
m_Fields = t.GetFields(BindingFlags.NonPublic |
@@ -143,7 +144,6 @@ namespace OpenSim.Data.MySQL
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
{
dbcon.Open();
cmd.Connection = dbcon;
bool found = false;
@@ -171,13 +171,14 @@ namespace OpenSim.Data.MySQL
}
}
}
dbcon.Close();
cmd.Connection = null;
if (!found && create)
{
DoCreate(es);
LinkRegion(regionID, (int)es.EstateID);
}
cmd.Connection = null;
dbcon.Close();
}
LoadBanList(es);