Message-ID: From: "JavaUnchained (@JavaUnchained)" To: "pgjdbc/pgjdbc" Date: Mon, 28 Oct 2024 15:19:48 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3396: SQLData Support In-Reply-To: References: List-Id: X-GitHub-Author-Login: JavaUnchained X-GitHub-Comment-Id: 2441889109 X-GitHub-Comment-Type: issue_comment X-GitHub-Edited-At: 2024-10-28T15:20:52Z X-GitHub-Issue: 3396 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3396#issuecomment-2441889109 Content-Type: text/plain; charset=utf-8 Another way to support array, ( i made it In my own wrapper, and it works well ) . I just extended the SqlInput interface by adding new method to it: ``` readArray(Class arrayElement) ``` And in my SQLData i cast SQLInput to my SQLInputExt and just explicitly set element type. I make a map with simple types and compare them with java primitives and postgres primitives. And I take udt from connection.getTypeMap()