Skip to content

Commit

Permalink
fix: broken code embedding (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
zFlxw authored Mar 4, 2025
1 parent ad2d37e commit f8fec1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conceptual/Npgsql/types/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ multirange types (PG14) | NpgsqlRange\<TElement>[] |
enum types | TEnum |
array types | Array (of element type) |

<sup>1</sup>Types which can be read as `byte[]` can also be written as `ReadOnlyMemory<byte>` and `Stream`., and if they could be big, consider using `Stream`CommandBehavior.SequentialAccess` and `NpgsqlDataReader.GetStream()` to stream the row and column instead of buffering them. Note that if you're reading string data (e.g. `jsonb`) as binary, it's you're responsibility to perform UTF8 decoding (or whatever encoding is configured for your database).
<sup>1</sup>Types which can be read as `byte[]` can also be written as `ReadOnlyMemory<byte>` and `Stream`, and if they could be big, consider using `CommandBehavior.SequentialAccess` and `NpgsqlDataReader.GetStream()` to stream the row and column instead of buffering them. Note that if you're reading string data (e.g. `jsonb`) as binary, it's your responsibility to perform UTF8 decoding (or whatever encoding is configured for your database).

<sup>2</sup> In versions prior to 6.0 (or when `Npgsql.EnableLegacyTimestampBehavior` is enabled), reading a `timestamp with time zone` returns a Local DateTime instead of Utc, and reading it as a DateTimeOffset returns a local offset based on the timezone of the server where Npgsql is running. [See the breaking change note for more info](../release-notes/6.0.md#major-changes-to-timestamp-mapping).

Expand Down

0 comments on commit f8fec1c

Please sign in to comment.