From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: NULL values and Java JDBC
Date: Fri, 30 Sep 2022 18:25:16 +0200
Message-ID: <YzcYbP3fnAqBTvPO@c720-r368166> (raw)
In-Reply-To: <53360920-f931-9854-9697-7088b139a3ef@gmail.com>
References: <YzcPX9iXzrT3jhy+@c720-r368166>
<53360920-f931-9854-9697-7088b139a3ef@gmail.com>
El día viernes, septiembre 30, 2022 a las 09:56:07a. m. -0600, Rob Sargent escribió:
> On 9/30/22 09:46, Matthias Apitz wrote:
> > Hello,
> >
> > Columns may contain NULL values. The ecpg for pre-compiling ESQL/C code
> > has an option to let return NULL values in CHAR columns as empty strings ""
> > and INTEGER as INT_MIN (-0x7fffffff - 1) values. Is there a similar
> > option for Java JDBC?
> >
> Have you looked at java.sql.PreparedStatement.setNull() or .setObject() etc?
I was thinking more in a general setting of such feature (like ecpg does
it for ESQL/C) and not addressing such problem on any single statement
or object.
matthias
--
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
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-general@postgresql.org
Cc: guru@unixarea.de
Subject: Re: NULL values and Java JDBC
In-Reply-To: <YzcYbP3fnAqBTvPO@c720-r368166>
References: <YzcPX9iXzrT3jhy+@c720-r368166> <53360920-f931-9854-9697-7088b139a3ef@gmail.com> <YzcYbP3fnAqBTvPO@c720-r368166>
* 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