From 62ce9c1ba8a1173102656e5c132559beafd31a8a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 15 May 2024 22:35:43 +0100 Subject: [PATCH] pgsql : fix asset store and a cast on estate --- OpenSim/Data/PGSQL/PGSQLEstateData.cs | 2 +- OpenSim/Data/PGSQL/Resources/AssetStore.migrations | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenSim/Data/PGSQL/PGSQLEstateData.cs b/OpenSim/Data/PGSQL/PGSQLEstateData.cs index 4eff7fb7d7..f059e49199 100644 --- a/OpenSim/Data/PGSQL/PGSQLEstateData.cs +++ b/OpenSim/Data/PGSQL/PGSQLEstateData.cs @@ -295,7 +295,7 @@ namespace OpenSim.Data.PGSQL using (NpgsqlCommand cmd = new NpgsqlCommand(sql, conn)) { NpgsqlParameter idParameter = new NpgsqlParameter("EstateID", DbType.Int32); - idParameter.Value = es.EstateID; + idParameter.Value = (int)es.EstateID; cmd.Parameters.Add(idParameter); conn.Open(); using (NpgsqlDataReader reader = cmd.ExecuteReader()) diff --git a/OpenSim/Data/PGSQL/Resources/AssetStore.migrations b/OpenSim/Data/PGSQL/Resources/AssetStore.migrations index 31db577351..38db5ee98f 100644 --- a/OpenSim/Data/PGSQL/Resources/AssetStore.migrations +++ b/OpenSim/Data/PGSQL/Resources/AssetStore.migrations @@ -102,8 +102,6 @@ COMMIT; BEGIN TRANSACTION; ---# "creatorID" goes up to VARCHAR(128) - alter table assets alter column "creatorID" type varchar(128);