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
parent
e9b0f71575
commit
b418033915
|
@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -251,7 +251,7 @@ namespace OpenSim.Data.PGSQL
|
|||
}
|
||||
if (PGFieldType == "double precision")
|
||||
{
|
||||
return (Double)value;
|
||||
return Convert.ToDouble(value);
|
||||
}
|
||||
return CreateParameterValue(value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue