From: Kris Jurka <books@ejurka.com>
To: Johnny Luong <johnny.luong@trustcommerce.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PreparedStatements with PG specific data types.
Date: Fri, 12 Jun 2009 09:10:13 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.0906120909440.23295@leary.csoft.net> (raw)
In-Reply-To: <4A31A4D7.3010800@trustcommerce.com>
References: <4A31A4D7.3010800@trustcommerce.com>
On Thu, 11 Jun 2009, Johnny Luong wrote:
> Is there a way to use PreparedStatements for specific data types such as
> interval or inet? I have a JDBC application that I'm trying to migrate
> from the V2 Protocol which allowed the arbitrary use of setObject() to
> the V3 Protocol and if there was Java PG specific way or JDBC 3 way
> (preferrable) that someone would describe, it would be appreciated.
>
setObject(i, "my value", Types.OTHER);
Kris Jurka
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: books@ejurka.com, johnny.luong@trustcommerce.com
Subject: Re: PreparedStatements with PG specific data types.
In-Reply-To: <alpine.BSO.2.00.0906120909440.23295@leary.csoft.net>
References: <4A31A4D7.3010800@trustcommerce.com> <alpine.BSO.2.00.0906120909440.23295@leary.csoft.net>
* 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