From: Ghislain Bob Hachey <ghachey@pipolfastaem.gov.sb>
To: Aaron Bono <postgresql@aranya.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Insert NULL value with to_numeric()
Date: Thu, 20 Jul 2006 14:48:11 +1100
Message-ID: <1153367291.2234.356.camel@informationmanagement.pfnet.local> (raw)
In-Reply-To: <bf05e51c0607191824v1911ff93xda6621cff3534a80@mail.gmail.com>
References: <1153356715.2234.342.camel@informationmanagement.pfnet.local>
<bf05e51c0607191824v1911ff93xda6621cff3534a80@mail.gmail.com>
>
> Why use to_number or to_timestamp? I assume you are using setString
> in your prepared statement. In your Java code you can use setNull if
> the value is null and setInt or setLong or setTimestamp if it is not.
> Then you don't need the to_number or to_timestamp.
You're absolutely right. I was trying to make it work with setString
first cause I'm new to java and it was easier at first look. But I will
take your advice.
Thanks a lot for your time
Ghislain Hachey
>
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-admin@postgresql.org
Cc: ghachey@pipolfastaem.gov.sb, postgresql@aranya.com
Subject: Re: Insert NULL value with to_numeric()
In-Reply-To: <1153367291.2234.356.camel@informationmanagement.pfnet.local>
References: <1153356715.2234.342.camel@informationmanagement.pfnet.local> <bf05e51c0607191824v1911ff93xda6621cff3534a80@mail.gmail.com> <1153367291.2234.356.camel@informationmanagement.pfnet.local>
* 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