diff options
author | Melanie Thielker | 2010-06-21 23:26:27 +0200 |
---|---|---|
committer | Melanie | 2010-10-13 18:41:09 +0100 |
commit | ccd5610997020df4ba1aafd73b6717bafecb025b (patch) | |
tree | 8d47a3f7bc42f6316df386242afa65b2e225a7d5 | |
parent | Ensure no UUID.Zero region ID is ever written to presence. Add a Migration (diff) | |
download | opensim-SC-ccd5610997020df4ba1aafd73b6717bafecb025b.zip opensim-SC-ccd5610997020df4ba1aafd73b6717bafecb025b.tar.gz opensim-SC-ccd5610997020df4ba1aafd73b6717bafecb025b.tar.bz2 opensim-SC-ccd5610997020df4ba1aafd73b6717bafecb025b.tar.xz |
Correctly update the LastSeen field
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLPresenceData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 7b0016b..81a48a8 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs | |||
@@ -83,7 +83,7 @@ namespace OpenSim.Data.MySQL | |||
83 | 83 | ||
84 | MySqlCommand cmd = new MySqlCommand(); | 84 | MySqlCommand cmd = new MySqlCommand(); |
85 | 85 | ||
86 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID where `SessionID`=?SessionID", m_Realm); | 86 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, LastSeen=NOW() where `SessionID`=?SessionID", m_Realm); |
87 | 87 | ||
88 | cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); | 88 | cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); |
89 | cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); | 89 | cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); |