-
Notifications
You must be signed in to change notification settings - Fork 819
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PgReader.GetTextReader with size > 65536 fails #5450
Comments
NinoFloris
added a commit
that referenced
this issue
Nov 24, 2023
Thanks for your report. I was able to reproduce the issue, #5454 fixes the underlying problem and it will be part of Npgsql 8.0.1 shortly. |
NinoFloris
added a commit
that referenced
this issue
Nov 25, 2023
NinoFloris
added a commit
that referenced
this issue
Nov 25, 2023
NinoFloris
added a commit
that referenced
this issue
Nov 28, 2023
NinoFloris
added a commit
that referenced
this issue
Nov 28, 2023
JonasWestman
pushed a commit
to monitor-erp/npgsql
that referenced
this issue
Dec 20, 2023
Fixes npgsql#5450 (cherry picked from commit 42ea28f) Signed-off-by: monjowe <jonas.westman@monitor.se>
JonasWestman
pushed a commit
to monitor-erp/npgsql
that referenced
this issue
Dec 21, 2023
Fixes npgsql#5450 (cherry picked from commit 42ea28f) Signed-off-by: monjowe <jonas.westman@monitor.se>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Query:
Code:
against attached sql dump.
dump.zip
The issue
When using .GetTextReader() it calls PgReader.cs GetTextReader() which returns a streaming reader (StreamReader) if the column size is > 65536 (const int maxPreparedSize = 1024 * 64;) however EndRead fails if the FieldOffset does not exactly match the FieldSize:
Even before returning from the outer GetTextReader
Exception:
The text was updated successfully, but these errors were encountered: