From 1de8c3570d0c8d18c181286334de81bf436dfbb4 Mon Sep 17 00:00:00 2001 From: Geir Nøklebye Date: Mon, 27 Jul 2015 14:25:28 +0200 Subject: PGSQL migrations for IM_Store, UserProfiles, removal of casting exception for UserProfiles and adding double precision to PGSQL Manager PGSQL migrations for IM_Store, UserProfiles, removal of casting exception for UserProfiles and adding double precision to PGSQL Manager. Fixes the Offline IM to Email toggle and prepares for fixing Offline IM. Signed-off-by: Oren Hurvitz --- OpenSim/Data/PGSQL/PGSQLManager.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Data/PGSQL/PGSQLManager.cs') diff --git a/OpenSim/Data/PGSQL/PGSQLManager.cs b/OpenSim/Data/PGSQL/PGSQLManager.cs index 97f40b2..46f835a 100644 --- a/OpenSim/Data/PGSQL/PGSQLManager.cs +++ b/OpenSim/Data/PGSQL/PGSQLManager.cs @@ -249,6 +249,10 @@ namespace OpenSim.Data.PGSQL { return (DateTime)value; } + if (PGFieldType == "double precision") + { + return (Double)value; + } return CreateParameterValue(value); } -- cgit v1.1