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.

INET fields are always decoded as null

See original GitHub issue

Hi, I am trying to execute a select query in a transaction using a prepared statement and a createStream method. One of the columns in a query has an INET type. During the select for each row I am getting the following warning in my logger:

WARN  i.r.p.impl.codec.DataTypeCodec - Data type INET does not support binary decoding

When I am calling getValue with either a column index or an alias, for my INET column I am always getting null as a result. As far as I can tell, INET type is not handled in a decodeBinary method, and it falls back to a default branch which returns null.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vietjcommented, Jun 21, 2021
1reaction
vietjcommented, Mar 26, 2019

great,

you will need to sign the Eclipse Contributor Agreement, as this project is going to be part of Eclipse Vert.x in the future.

Julien

On 26 Mar 2019, at 15:09, Nikolay Arhipov notifications@github.com wrote:

Sure, I’ll attempt to do it this weekend

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/reactiverse/reactive-pg-client/issues/257#issuecomment-476660559, or mute the thread https://github.com/notifications/unsubscribe-auth/AANxioNXBs81bp8U85oeZnr-CQv7nEoHks5vaioSgaJpZM4cLgzP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

INET fields are always decoded as null · Issue #257 - GitHub
Hi, I am trying to execute a select query in a transaction using a prepared statement and a createStream method. One of the...
Read more >
Swift Codable null handling - Stack Overflow
A null value (no string) is treated as nil by default so the decoding is supposed to succeed if the property is optional....
Read more >
How to determine if a JSON key has been set to null or not ...
Learn to distinguish between when a JSON key is set to null or the key wasn't ... That field will always be present,...
Read more >
[Pitch] JSONDecoder.nullDecodingStrategy - Swift Forums
I would like to propose an additive change to include a decoding ... a payload containing an explicit null or the field being...
Read more >
Decoding · zio-json
If a case class field is defined with a default value and the field is not present or null , the default value...
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