Sitelet https://github.com/npgsql/npgsql/issues/6389
Skip to content

BigIntegerNumericConverter.ReadAsync is missing an early return when everything is already in the buffer #6389

Description

@vonzshik

public override ValueTask<BigInteger> ReadAsync(PgReader reader, CancellationToken cancellationToken = default)
{
// If we don't need a read and can read buffered we delegate to our sync read method which won't do IO in such a case.
if (!reader.ShouldBuffer(reader.CurrentRemaining))
Read(reader);

This issue can be reproduced with composites and CommandBehavior.SequentialAccess.

Activity

  1. added this to the 10.0.2 milestone on Dec 23, 2025
  2. self-assigned this
    on Dec 23, 2025
  3. added theissue type on Dec 23, 2025
  4. added a commit that references this issue on Dec 28, 2025
    3c53568
  5. added 3 commits that reference this issue on Dec 30, 2025
    181f247
    10c40c7
    3e90843
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions