Reading bytea[] fails
See original GitHub issueFails to read data of type bytea[]
when one or more of the array values are null
.
For example, node-postgres does correct insertion of value ['\x1A2B', null, '\x1C2D']
, but it fails to read such data back.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Reading byte array the second time causes error?
When I call readUTFBytes() it resets the bytes available to 0. So when I read it a second time and there are no...
Read more >Error reading bytes of binary data from a file : r/cpp_questions
I have a binary data file. I need to extract individual bytes. When I read it using std::ifstream{filename, std::ios_base::binary} , I can read...
Read more >bytea column incorrectly read by psycopg2 #2455
The reason may be: incorrect decodiing, may be an issue in psycopg2 , or; bytea columns should always be feed with binary format....
Read more >Read problem from Bytea column
Hello, I have postgresql 8.3.9 database. Now I am working on reading file from bytea data and save to filesystem.
Read more >Thread: Read problem from Bytea column
Hello, I have postgresql 8.3.9 database. Now I am working on reading file from bytea data and save to filesystem.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brianc With brianc/node-pg-types#67 merged, a new published version of pg-types will fix this. 😊
@charmander thanks for the heads up! I have set to ‘watch’ on pg-types and own the repo yet still don’t seem to get notifications from it. I’ve published a new patch version with your fix!
pg-types@1.12.1