Skip to content

GetFieldValue supports stream and text reader - #3161

Merged
YohDeadfall merged 3 commits into
npgsql:mainfrom
YohDeadfall:get-field-as-stream
Sep 21, 2020
Merged

YohDeadfall merged 3 commits into
npgsql:mainfrom
YohDeadfall:get-field-as-stream

Conversation

@YohDeadfall

Copy link
Copy Markdown
Contributor

Fixes #2446. Test will be added into the standard API tests by closing mysql-net/AdoNetApiTest#144.

Fixes #2446. Test will be added into the standard API tests by closing mysql-net/AdoNetApiTest#144.
@YohDeadfall
YohDeadfall requested a review from roji as a code owner September 19, 2020 11:57

@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.

This doesn't actually work: GetStream contains a check that the handler is a ByteHandler, that check needs to be removed.

Comment thread src/Npgsql/NpgsqlDataReader.cs Resolved
Comment thread src/Npgsql/NpgsqlDataReader.cs Resolved
@YohDeadfall
YohDeadfall merged commit 19b1dfd into npgsql:main Sep 21, 2020
@YohDeadfall
YohDeadfall deleted the get-field-as-stream branch September 21, 2020 10:05
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.

GetFieldValue() should work with Stream/TextReader

3 participants