pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
[pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN
5+ messages / 2 participants
[nested] [flat]

* [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN
@ 2025-08-26 03:09  "ShenFeng312 (@ShenFeng312)" <[email protected]>
  0 siblings, 0 replies; 5+ messages in thread

From: ShenFeng312 (@ShenFeng312) @ 2025-08-26 03:09 UTC (permalink / raw)
  To: pgjdbc/pgjdbc <[email protected]>

pgjdbc can't decode numeric arrays containing special numbers like`NaN`


In fact, I know that pgjdbc uses a special double type to represent special numeric values. However, when converting to an array, it forces the use of `BigDecimal[]`. I’m wondering if we can change this behavior. I would like to use `Number[]` instead of `BigDecimal[]`. I’m not sure if this is


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN
@ 2025-08-26 03:17  "ShenFeng312 (@ShenFeng312)" <[email protected]>
  3 siblings, 0 replies; 5+ messages in thread

From: ShenFeng312 (@ShenFeng312) @ 2025-08-26 03:17 UTC (permalink / raw)
  To: pgjdbc/pgjdbc <[email protected]>

```java
  private static final ArrayDecoder<BigDecimal[]> BIG_DECIMAL_STRING_DECODER = new AbstractObjectStringArrayDecoder<BigDecimal[]>(
      BigDecimal.class) {

    @Override
    Object parseValue(String stringVal, BaseConnection connection) throws SQLException {
      return PgResultSet.toBigDecimal(stringVal);
    }
  };
```

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN
@ 2025-08-26 03:32  "ShenFeng312 (@ShenFeng312)" <[email protected]>
  3 siblings, 0 replies; 5+ messages in thread

From: ShenFeng312 (@ShenFeng312) @ 2025-08-26 03:32 UTC (permalink / raw)
  To: pgjdbc/pgjdbc <[email protected]>

Of course, encode has the same issue.

^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN
@ 2025-10-09 08:31  "ShenFeng312 (@ShenFeng312)" <[email protected]>
  3 siblings, 0 replies; 5+ messages in thread

From: ShenFeng312 (@ShenFeng312) @ 2025-10-09 08:31 UTC (permalink / raw)
  To: pgjdbc/pgjdbc <[email protected]>

PTAL @davecramer @vlsi 


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN
@ 2025-10-09 10:03  "davecramer (@davecramer)" <[email protected]>
  3 siblings, 0 replies; 5+ messages in thread

From: davecramer (@davecramer) @ 2025-10-09 10:03 UTC (permalink / raw)
  To: pgjdbc/pgjdbc <[email protected]>

Any chance you could provide a PR ?

^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2025-10-09 10:03 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-08-26 03:09 [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN "ShenFeng312 (@ShenFeng312)" <[email protected]>
2025-08-26 03:17 ` "ShenFeng312 (@ShenFeng312)" <[email protected]>
2025-08-26 03:32 ` "ShenFeng312 (@ShenFeng312)" <[email protected]>
2025-10-09 08:31 ` "ShenFeng312 (@ShenFeng312)" <[email protected]>
2025-10-09 10:03 ` "davecramer (@davecramer)" <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox