Fix PGSQLUserProfilesData.GetUserPreferences error when no usersettings yet exist by inserting missing ID parameter.
Relates to http://opensimulator.org/mantis/view.php?id=7398sedebug
parent
71d73777d9
commit
02f2352ad5
|
@ -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', '')";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue