aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorMelanie Thielker2010-06-21 23:26:27 +0200
committerMelanie2010-10-13 18:41:09 +0100
commitccd5610997020df4ba1aafd73b6717bafecb025b (patch)
tree8d47a3f7bc42f6316df386242afa65b2e225a7d5 /OpenSim/Data/MySQL
parentEnsure no UUID.Zero region ID is ever written to presence. Add a Migration (diff)
downloadopensim-SC_OLD-ccd5610997020df4ba1aafd73b6717bafecb025b.zip
opensim-SC_OLD-ccd5610997020df4ba1aafd73b6717bafecb025b.tar.gz
opensim-SC_OLD-ccd5610997020df4ba1aafd73b6717bafecb025b.tar.bz2
opensim-SC_OLD-ccd5610997020df4ba1aafd73b6717bafecb025b.tar.xz
Correctly update the LastSeen field
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLPresenceData.cs2
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());