Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Npgsql 8.0.3 #3166

Merged
merged 1 commit into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<EFCoreVersion>9.0.0-preview.3.24172.4</EFCoreVersion>
<MicrosoftExtensionsVersion>9.0.0-preview.3.24172.9</MicrosoftExtensionsVersion>
<NpgsqlVersion>8.0.2</NpgsqlVersion>
<NpgsqlVersion>8.0.3</NpgsqlVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@
NpgsqlDataSource? dataSource)
=> SetupEnumMappings(sqlGenerationHelper, dataSource);

#pragma warning disable NPG9001
/// <summary>
/// Gets all global enum mappings from the ADO.NET layer and creates mappings for them
/// </summary>
Expand Down Expand Up @@ -391,7 +392,7 @@

if (adoEnumMappings is not null)
{
foreach (var adoEnumMapping in adoEnumMappings)

Check failure on line 395 in src/EFCore.PG/Storage/Internal/NpgsqlTypeMappingSource.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-22.04, 15, Release)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlTypeMappingSource.SetupEnumMappings(ISqlGenerationHelper sqlGenerationHelper, NpgsqlDataSource dataSource) System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
{
// TODO: update with schema per https://github.com/npgsql/npgsql/issues/2121
var components = adoEnumMapping.PgTypeName.Split('.');
Expand All @@ -407,6 +408,7 @@
}
}
}
#pragma warning restore NPG9001

/// <summary>
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down
Loading