Skip to content

Fixed ColumnStream.Read, when ReadBuffer haven't read requested count - #3406

Merged
vonzshik merged 2 commits into
npgsql:mainfrom
vonzshik:3403-ColumnStream-Read-fix
Dec 13, 2020
Merged

vonzshik merged 2 commits into
npgsql:mainfrom
vonzshik:3403-ColumnStream-Read-fix

Conversation

@vonzshik

Copy link
Copy Markdown
Contributor

Fixes #3403

@roji roji left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch and thanks, looks good... Strange that this bug was in sync but not in the async path...

Comment thread test/Npgsql.Tests/ReaderTests.cs Resolved
@vonzshik
vonzshik merged commit 40a1fd3 into npgsql:main Dec 13, 2020
@vonzshik

Copy link
Copy Markdown
Contributor Author

Backported to 5.0.2 via fb12040

@vonzshik
vonzshik deleted the 3403-ColumnStream-Read-fix branch January 10, 2021 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Npgsql.NpgsqlException (0x80004005): Exception while reading from stream

2 participants