pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: crowmagnumb (@crowmagnumb) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] PR #3396: SQLData Support
Date: Fri, 10 Jan 2025 23:08:16 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

> 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<T> 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()

Ah, well I don't use readArray() either I use readObject(T[].class) and that works great. But I'm trying to support the full interface even if I won't use it.  :)

view thread (67+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] PR #3396: SQLData Support
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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