Updated the code to handle Agent Preferences. Thanks to TomDataworks for providing a final solution.

Signed-off-by: Kevin Cozens <kevin@ve3syb.ca>  (mantis #7610)
LSLKeyTest
Geir Nøklebye 2016-03-17 10:37:27 +01:00 committed by Kevin Cozens
parent e9b0f71575
commit b418033915
2 changed files with 5 additions and 13 deletions

View File

@ -44,20 +44,12 @@ namespace OpenSim.Data.PGSQL
public AgentPreferencesData GetPrefs(UUID agentID)
{
// Until someone sends in a table that works
AgentPreferencesData[] ret = Get("PrincipalID", agentID.ToString());
if (ret.Length == 0)
return null;
//AgentPreferencesData[] ret = Get("PrincipalID", agentID.ToString());
//if (ret.Length == 0)
// return null;
//return ret[0];
}
public override bool Store(AgentPreferencesData row)
{
// Until someone sends in a table that works
return false;
return ret[0];
}
}

View File

@ -251,7 +251,7 @@ namespace OpenSim.Data.PGSQL
}
if (PGFieldType == "double precision")
{
return (Double)value;
return Convert.ToDouble(value);
}
return CreateParameterValue(value);
}