mirror of
https://github.com/opensim/opensim.git
synced 2026-07-13 19:14:51 +08:00
Correctly update the LastSeen field
This commit is contained in:
@@ -83,7 +83,7 @@ namespace OpenSim.Data.MySQL
|
||||
|
||||
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("?RegionID", regionID.ToString());
|
||||
|
||||
Reference in New Issue
Block a user