Skip to content

Commit

Permalink
Fix sync writing of hstore values (#5452)
Browse files Browse the repository at this point in the history
fixes #5445

(cherry picked from commit b21c41c)
  • Loading branch information
NinoFloris committed Nov 28, 2023
1 parent 1d070a5 commit 30f7bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Npgsql/Internal/Converters/HstoreConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async ValueTask Write(bool async, PgWriter writer, T value, CancellationToken ca
if (async)
await writer.WriteCharsAsync(kv.Value.AsMemory(), _encoding, cancellationToken).ConfigureAwait(false);
else
writer.WriteChars(kv.Key.AsSpan(), _encoding);
writer.WriteChars(kv.Value.AsSpan(), _encoding);
}
i += 2;
}
Expand Down

0 comments on commit 30f7bec

Please sign in to comment.