diff options
author | Geir Nøklebye | 2016-03-17 10:37:27 +0100 |
---|---|---|
committer | Kevin Cozens | 2016-04-25 12:15:34 -0400 |
commit | b4180339151bf98e86e6f420ae6fe7582ecebd89 (patch) | |
tree | d89a7cf1696ab8e96fa7bc49538da737c9ad25d5 /OpenSim/Data | |
parent | Fix Mantis #7805, table handler needs to look for all unique constraints. (diff) | |
download | opensim-SC_OLD-b4180339151bf98e86e6f420ae6fe7582ecebd89.zip opensim-SC_OLD-b4180339151bf98e86e6f420ae6fe7582ecebd89.tar.gz opensim-SC_OLD-b4180339151bf98e86e6f420ae6fe7582ecebd89.tar.bz2 opensim-SC_OLD-b4180339151bf98e86e6f420ae6fe7582ecebd89.tar.xz |
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)
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLAgentPreferencesData.cs | 16 | ||||
-rw-r--r-- | OpenSim/Data/PGSQL/PGSQLManager.cs | 2 |
2 files changed, 5 insertions, 13 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLAgentPreferencesData.cs b/OpenSim/Data/PGSQL/PGSQLAgentPreferencesData.cs index 20612fe..4794c71 100644 --- a/OpenSim/Data/PGSQL/PGSQLAgentPreferencesData.cs +++ b/OpenSim/Data/PGSQL/PGSQLAgentPreferencesData.cs | |||
@@ -44,20 +44,12 @@ namespace OpenSim.Data.PGSQL | |||
44 | 44 | ||
45 | public AgentPreferencesData GetPrefs(UUID agentID) | 45 | public AgentPreferencesData GetPrefs(UUID agentID) |
46 | { | 46 | { |
47 | // Until someone sends in a table that works | ||
48 | return null; | ||
49 | //AgentPreferencesData[] ret = Get("PrincipalID", agentID.ToString()); | ||
50 | 47 | ||
51 | //if (ret.Length == 0) | 48 | AgentPreferencesData[] ret = Get("PrincipalID", agentID.ToString()); |
52 | // return null; | ||
53 | 49 | ||
54 | //return ret[0]; | 50 | if (ret.Length == 0) |
55 | } | 51 | return null; |
56 | 52 | return ret[0]; | |
57 | public override bool Store(AgentPreferencesData row) | ||
58 | { | ||
59 | // Until someone sends in a table that works | ||
60 | return false; | ||
61 | } | 53 | } |
62 | 54 | ||
63 | } | 55 | } |
diff --git a/OpenSim/Data/PGSQL/PGSQLManager.cs b/OpenSim/Data/PGSQL/PGSQLManager.cs index 46f835a..af5a7cd 100644 --- a/OpenSim/Data/PGSQL/PGSQLManager.cs +++ b/OpenSim/Data/PGSQL/PGSQLManager.cs | |||
@@ -251,7 +251,7 @@ namespace OpenSim.Data.PGSQL | |||
251 | } | 251 | } |
252 | if (PGFieldType == "double precision") | 252 | if (PGFieldType == "double precision") |
253 | { | 253 | { |
254 | return (Double)value; | 254 | return Convert.ToDouble(value); |
255 | } | 255 | } |
256 | return CreateParameterValue(value); | 256 | return CreateParameterValue(value); |
257 | } | 257 | } |