diff options
author | Melanie Thielker | 2010-06-21 23:26:27 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-06-21 23:26:27 +0200 |
commit | 3ea4e5ccbe123c2ba6d8c47b7e870bfd90754f20 (patch) | |
tree | 35d48f715b5a2d6a889d577b6ec635ca83aad943 /OpenSim/Data | |
parent | Bump the migration version, ot it would never happen (diff) | |
download | opensim-SC_OLD-3ea4e5ccbe123c2ba6d8c47b7e870bfd90754f20.zip opensim-SC_OLD-3ea4e5ccbe123c2ba6d8c47b7e870bfd90754f20.tar.gz opensim-SC_OLD-3ea4e5ccbe123c2ba6d8c47b7e870bfd90754f20.tar.bz2 opensim-SC_OLD-3ea4e5ccbe123c2ba6d8c47b7e870bfd90754f20.tar.xz |
Correctly update the LastSeen field
Diffstat (limited to 'OpenSim/Data')
-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 9ef880c..2390feb 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()); |