Skip to content

Commit

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

(cherry picked from commit b21c41c)
Signed-off-by: monjowe <jonas.westman@monitor.se>
  • Loading branch information
NinoFloris authored and JonasWestman committed Dec 21, 2023
1 parent e26dbee commit 76094df
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 76094df

Please sign in to comment.