pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: juanmarianofuentes <juanmarianofuentes@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: JDBC array support
Date: Wed, 8 Nov 2017 19:17:20 +0100
Message-ID: <1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Dear all,

I’m new to this list, I hope to get some support regarding the JDBC driver since I’m developing a middleware using Postgresql.

I have successfully use the driver to set Object arrays.
preparedStatement.setArray(parameterIndex, connection.createArrayOf(sqlType, (Object[]) parameter));

The issue here, is that I see myself forced to create object arrays when I could perfectly manage this use case using arrays of basic types, been that way more memory efficient.

I hope somebody with more experience can point me on the right direction.

Thanks in advance,
Juan

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (3+ messages)  latest in thread

Message-ID: <1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com>
Permalink:  ../1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com/
Also on:    postgresql.org/message-id/1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: juanmarianofuentes@gmail.com
  Subject: Re: JDBC array support
  In-Reply-To: <1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com>
  References: <1542CDD5-A487-4557-8FA7-E8C70A338012@gmail.com>

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

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