From 114830aa4be858fb66add3125b121cf125d22c8b Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 15 May 2024 23:12:08 +0100 Subject: [PATCH] retry... --- OpenSim/Data/PGSQL/PGSQLManager.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenSim/Data/PGSQL/PGSQLManager.cs b/OpenSim/Data/PGSQL/PGSQLManager.cs index 01e26d45ae..7deb942233 100644 --- a/OpenSim/Data/PGSQL/PGSQLManager.cs +++ b/OpenSim/Data/PGSQL/PGSQLManager.cs @@ -184,7 +184,11 @@ namespace OpenSim.Data.PGSQL } if (valueType == typeof(uint)) { - return (int)value; + return (int)(uint)value; + } + if (valueType == typeof(ushort)) + { + return (int)(ushort)value; } return value; }