Fix PGSQLUserProfilesData.GetUserPreferences error when no usersettings yet exist by inserting missing ID parameter.

Relates to http://opensimulator.org/mantis/view.php?id=7398
This commit is contained in:
Justin Clark-Casey (justincc)
2015-01-13 23:52:52 +00:00
parent 71d73777d9
commit 02f2352ad5

View File

@@ -904,6 +904,7 @@ namespace OpenSim.Data.PGSQL
{
using (NpgsqlCommand put = new NpgsqlCommand(query, dbcon))
{
put.Parameters.Add(m_database.CreateParameter("Id", pref.UserId));
query = "INSERT INTO usersettings VALUES ";
query += "(:Id,'false','false', '')";