Skip to content

Commit 4085f20

Browse files
netijoejeremydmiller
authored andcommitted
Fix removing partitions by value
1 parent 2842a0b commit 4085f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Weasel.Postgresql/Tables/Partitioning/ManagedListPartitions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public async Task DropPartitionFromAllTablesForValue(PostgresqlDatabase database
9797

9898
try
9999
{
100-
var suffix = _partitions.Single(x => x.Value == value).Key;
100+
var suffix = _partitions[value];
101101
await DropPartitionFromAllTables(database, logger, [suffix], token).ConfigureAwait(false);
102102
}
103103
catch (InvalidOperationException)

0 commit comments

Comments
 (0)