diff options
author | Justin Clark-Casey (justincc) | 2015-01-13 23:52:52 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2015-01-13 23:52:52 +0000 |
commit | 02f2352ad5ba4b60638ad85f8449a0cb336ce1a0 (patch) | |
tree | b52b350fc183d07e97506475c6de4635adec0292 /OpenSim/Data/PGSQL | |
parent | Revert "Remove quotes from column selection in PGSQLUserProfilesData.UpdateAv... (diff) | |
download | opensim-SC_OLD-02f2352ad5ba4b60638ad85f8449a0cb336ce1a0.zip opensim-SC_OLD-02f2352ad5ba4b60638ad85f8449a0cb336ce1a0.tar.gz opensim-SC_OLD-02f2352ad5ba4b60638ad85f8449a0cb336ce1a0.tar.bz2 opensim-SC_OLD-02f2352ad5ba4b60638ad85f8449a0cb336ce1a0.tar.xz |
Fix PGSQLUserProfilesData.GetUserPreferences error when no usersettings yet exist by inserting missing ID parameter.
Relates to http://opensimulator.org/mantis/view.php?id=7398
Diffstat (limited to 'OpenSim/Data/PGSQL')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs index ade12bf..301d3dd 100644 --- a/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs +++ b/OpenSim/Data/PGSQL/PGSQLUserProfilesData.cs | |||
@@ -904,6 +904,7 @@ namespace OpenSim.Data.PGSQL | |||
904 | { | 904 | { |
905 | using (NpgsqlCommand put = new NpgsqlCommand(query, dbcon)) | 905 | using (NpgsqlCommand put = new NpgsqlCommand(query, dbcon)) |
906 | { | 906 | { |
907 | put.Parameters.Add(m_database.CreateParameter("Id", pref.UserId)); | ||
907 | query = "INSERT INTO usersettings VALUES "; | 908 | query = "INSERT INTO usersettings VALUES "; |
908 | query += "(:Id,'false','false', '')"; | 909 | query += "(:Id,'false','false', '')"; |
909 | 910 | ||