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

Relates to http://opensimulator.org/mantis/view.php?id=7398
sedebug
Justin Clark-Casey (justincc) 2015-01-13 23:52:52 +00:00
parent 71d73777d9
commit 02f2352ad5
1 changed files with 1 additions and 0 deletions

View File

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