diff --git a/OpenSim/Data/PGSQL/PGSQLManager.cs b/OpenSim/Data/PGSQL/PGSQLManager.cs index 7deb942233..736306e074 100644 --- a/OpenSim/Data/PGSQL/PGSQLManager.cs +++ b/OpenSim/Data/PGSQL/PGSQLManager.cs @@ -207,6 +207,11 @@ namespace OpenSim.Data.PGSQL UUID.TryParse(value.ToString(), out uid); return uid.Guid; } + if (PGFieldType == "smallint") + { + short.TryParse(value.ToString(), out short sintout); + return sintout; + } if (PGFieldType == "integer") { int intout;