mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
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:
@@ -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', '')";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user