diff options
author | Justin Clark-Casey (justincc) | 2015-01-13 21:13:57 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2015-01-13 21:13:57 +0000 |
commit | 46e8a99526838d4ee6d55c9486e5f72b3ed4cc97 (patch) | |
tree | ec472eaffd901c968cf200831e19ee317209a734 | |
parent | Fix MySQL and PGSQL *UserProfilesData.GetUserAppData() calls to correctly set... (diff) | |
download | opensim-SC_OLD-46e8a99526838d4ee6d55c9486e5f72b3ed4cc97.zip opensim-SC_OLD-46e8a99526838d4ee6d55c9486e5f72b3ed4cc97.tar.gz opensim-SC_OLD-46e8a99526838d4ee6d55c9486e5f72b3ed4cc97.tar.bz2 opensim-SC_OLD-46e8a99526838d4ee6d55c9486e5f72b3ed4cc97.tar.xz |
Change PGSQLUserProfilesData.UpdateUserPreferences() to directly pass the UUID to the uuid parameter instead of its ToString()
This may well be the cause behind "operator does not exist: uuid = character varying" pgsql errors.
If so, the other instances will also be changed.
Relates to http://opensimulator.org/mantis/view.php?id=7398
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs index 0f4c8c1..c8424cc 100644 --- a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs +++ b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs | |||
@@ -943,7 +943,7 @@ namespace OpenSim.Data.PGSQL | |||
943 | cmd.Parameters.Add(m_database.CreateParameter("ImViaEmail", pref.IMViaEmail.ToString().ToLower ())); | 943 | cmd.Parameters.Add(m_database.CreateParameter("ImViaEmail", pref.IMViaEmail.ToString().ToLower ())); |
944 | cmd.Parameters.Add(m_database.CreateParameter("Visible", pref.Visible.ToString().ToLower ())); | 944 | cmd.Parameters.Add(m_database.CreateParameter("Visible", pref.Visible.ToString().ToLower ())); |
945 | cmd.Parameters.Add(m_database.CreateParameter("EMail", pref.EMail.ToString().ToLower ())); | 945 | cmd.Parameters.Add(m_database.CreateParameter("EMail", pref.EMail.ToString().ToLower ())); |
946 | cmd.Parameters.Add(m_database.CreateParameter("uuid", pref.UserId.ToString())); | 946 | cmd.Parameters.Add(m_database.CreateParameter("uuid", pref.UserId)); |
947 | 947 | ||
948 | cmd.ExecuteNonQuery(); | 948 | cmd.ExecuteNonQuery(); |
949 | } | 949 | } |