Correctly update the LastSeen field

avinationmerge
Melanie Thielker 2010-06-21 23:26:27 +02:00
parent 53905cf919
commit 3ea4e5ccbe
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ namespace OpenSim.Data.MySQL
MySqlCommand cmd = new MySqlCommand(); MySqlCommand cmd = new MySqlCommand();
cmd.CommandText = String.Format("update {0} set RegionID=?RegionID where `SessionID`=?SessionID", m_Realm); cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, LastSeen=NOW() where `SessionID`=?SessionID", m_Realm);
cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString());
cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); cmd.Parameters.AddWithValue("?RegionID", regionID.ToString());