Skip to content

Commit 7c8f60a

Browse files
NinoFlorisJonasWestman
authored andcommitted
Fix sync writing of hstore values (npgsql#5452)
fixes npgsql#5445 (cherry picked from commit b21c41c) Signed-off-by: monjowe <jonas.westman@monitor.se>
1 parent 73ff7ad commit 7c8f60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Npgsql/Internal/Converters/HstoreConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async ValueTask Write(bool async, PgWriter writer, T value, CancellationToken ca
147147
if (async)
148148
await writer.WriteCharsAsync(kv.Value.AsMemory(), _encoding, cancellationToken).ConfigureAwait(false);
149149
else
150-
writer.WriteChars(kv.Key.AsSpan(), _encoding);
150+
writer.WriteChars(kv.Value.AsSpan(), _encoding);
151151
}
152152
i += 2;
153153
}

0 commit comments

Comments
 (0)