You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create user defiend type referencing another type, for example CREATE DOMAIN temperature AS numeric; CREATE TYPE temperature_range AS RANGE (SUBTYPE=library.temperature);
The issue
Type is not loaded and could not be fetched
Log
trce: Npgsql.Connection[0]
Range type 'temperature_range' refers to unknown subtype with OID 25040, skipping
Error
Unhandled exception. System.InvalidCastException: Reading as 'System.Object' is not supported for fields having DataTypeName '.<unknown>'
---> System.ArgumentException: A PostgreSQL type with the oid '0' was not found in the current database info
at Npgsql.Internal.NpgsqlDatabaseInfo.GetPostgresType(UInt32 oid)
at Npgsql.Internal.NpgsqlDatabaseInfo.GetPostgresType(Oid oid)
at Npgsql.Internal.NpgsqlDatabaseInfo.GetDataTypeName(PgTypeId pgTypeId, Boolean validate)
at Npgsql.Internal.TypeInfoCache`1.<GetOrAddInfo>g__CreateInfo|6_3(Type type, Nullable`1 typeId, PgSerializerOptions options, Boolean defaultTypeFallback, Boolean validatePgTypeIds)
at Npgsql.Internal.TypeInfoCache`1.<GetOrAddInfo>g__AddEntryById|6_2(Type type, TPgTypeId pgTypeId, ValueTuple`2[] infos, Boolean defaultTypeFallback)
at Npgsql.Internal.TypeInfoCache`1.GetOrAddInfo(Type type, Nullable`1 pgTypeId, Boolean defaultTypeFallback)
at Npgsql.Internal.PgSerializerOptions.GetTypeInfoCore(Type type, Nullable`1 pgTypeId, Boolean defaultTypeFallback)
at Npgsql.Internal.PgSerializerOptions.GetObjectOrDefaultTypeInfo(PostgresType pgType)
at Npgsql.Internal.AdoSerializerHelpers.GetTypeInfoForReading(Type type, PostgresType postgresType, PgSerializerOptions options)
Further technical details
Npgsql version: 8.0.2
PostgreSQL version: 14
Operating system: Windows 11
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Create user defiend type referencing another type, for example
CREATE DOMAIN temperature AS numeric; CREATE TYPE temperature_range AS RANGE (SUBTYPE=library.temperature);
The issue
Type is not loaded and could not be fetched
Log
Error
Further technical details
Npgsql version: 8.0.2
PostgreSQL version: 14
Operating system: Windows 11
The text was updated successfully, but these errors were encountered: