question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reading bytea[] fails

See original GitHub issue

Fails 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:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
charmandercommented, Aug 21, 2017

@brianc With brianc/node-pg-types#67 merged, a new published version of pg-types will fix this. 😊

0reactions
brianccommented, Aug 21, 2017

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found