Skip to content

Commit

Permalink
Fix arrays over user-defined ranges (npgsql#3342)
Browse files Browse the repository at this point in the history
  • Loading branch information
roji authored and WhatzGames committed Dec 18, 2024
1 parent 5553bee commit 899868d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected NpgsqlArrayTypeMapping(RelationalTypeMappingParameters parameters)
// Otherwise let the ADO.NET layer infer the PostgreSQL type. We can't always let it infer, otherwise
// when given a byte[] it will infer byte (but we want smallint[])
NpgsqlDbType = NpgsqlTypes.NpgsqlDbType.Array
| (ElementTypeMapping is INpgsqlTypeMapping elementNpgsqlTypeMapping
| (ElementTypeMapping is INpgsqlTypeMapping { NpgsqlDbType: not NpgsqlTypes.NpgsqlDbType.Unknown } elementNpgsqlTypeMapping
? elementNpgsqlTypeMapping.NpgsqlDbType
: ElementTypeMapping.DbType.HasValue
? new NpgsqlParameter { DbType = ElementTypeMapping.DbType.Value }.NpgsqlDbType
Expand Down

0 comments on commit 899868d

Please sign in to comment.