From 73e527fffc6c7a9241ec6a29963a54e085ff0c98 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 22 Mar 2016 20:01:22 +0100 Subject: [PATCH] Fix some artefacts that came from merging the OSGrid code. --- OpenSim/Data/MySQL/MySQLFSAssetData.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Data/MySQL/MySQLFSAssetData.cs b/OpenSim/Data/MySQL/MySQLFSAssetData.cs index 40bfd1fe98..cb1755e211 100644 --- a/OpenSim/Data/MySQL/MySQLFSAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLFSAssetData.cs @@ -75,6 +75,7 @@ namespace OpenSim.Data.MySQL { using (MySqlConnection conn = new MySqlConnection(m_ConnectionString)) { + conn.Open(); Migration m = new Migration(conn, Assembly, "FSAssetStore"); m.Update(); } @@ -150,7 +151,7 @@ namespace OpenSim.Data.MySQL using (MySqlCommand cmd = conn.CreateCommand()) { - cmd.CommandText = String.Format("select id, name, description, type, hash, create_time, asset_flags from {0} where id = ?id", m_Table); + cmd.CommandText = String.Format("select id, name, description, type, hash, create_time, asset_flags, access_time from {0} where id = ?id", m_Table); cmd.Parameters.AddWithValue("?id", id); using (IDataReader reader = cmd.ExecuteReader())