Re: NULL values and Java JDBC

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: NULL values and Java JDBC
Date: 2022-09-30 15:56:07
Message-ID: 53360920-f931-9854-9697-7088b139a3ef@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?
>
> Thanks
>
> matthias
>
Have you looked at java.sql.PreparedStatement.setNull() or .setObject() etc?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Matthias Apitz 2022-09-30 16:25:16 Re: NULL values and Java JDBC
Previous Message Matthias Apitz 2022-09-30 15:46:39 NULL values and Java JDBC