Message-ID: From: "ShenFeng312 (@ShenFeng312)" To: "pgjdbc/pgjdbc" Date: Tue, 26 Aug 2025 03:17:07 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3784: pgjdbc can't decode numeric arrays containing special numbers like NaN In-Reply-To: References: List-Id: X-GitHub-Author-Login: ShenFeng312 X-GitHub-Comment-Id: 3222434591 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3784 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3784#issuecomment-3222434591 Content-Type: text/plain; charset=utf-8 ```java private static final ArrayDecoder BIG_DECIMAL_STRING_DECODER = new AbstractObjectStringArrayDecoder( BigDecimal.class) { @Override Object parseValue(String stringVal, BaseConnection connection) throws SQLException { return PgResultSet.toBigDecimal(stringVal); } }; ```