diff options
Diffstat (limited to 'OpenSim/Data/MySQL/MySQLPresenceData.cs')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLPresenceData.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 72b8a0c..e5dd0e5 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs | |||
@@ -81,12 +81,12 @@ namespace OpenSim.Data.MySQL | |||
81 | 81 | ||
82 | MySqlCommand cmd = new MySqlCommand(); | 82 | MySqlCommand cmd = new MySqlCommand(); |
83 | 83 | ||
84 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, Position=?Position, LookAt=?LookAt', Online='true' where `SessionID`=?SessionID", m_Realm); | 84 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, Position=?Position, LookAt=?LookAt, Online='true' where `SessionID`=?SessionID", m_Realm); |
85 | 85 | ||
86 | cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); | 86 | cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); |
87 | cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); | 87 | cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); |
88 | cmd.Parameters.AddWithValue("?Position", position); | 88 | cmd.Parameters.AddWithValue("?Position", position.ToString()); |
89 | cmd.Parameters.AddWithValue("?LookAt", lookAt); | 89 | cmd.Parameters.AddWithValue("?LookAt", lookAt.ToString()); |
90 | 90 | ||
91 | if (ExecuteNonQuery(cmd) == 0) | 91 | if (ExecuteNonQuery(cmd) == 0) |
92 | return false; | 92 | return false; |