Re: PreparedStatements with PG specific data types.

From: Kris Jurka <books(at)ejurka(dot)com>
To: Johnny Luong <johnny(dot)luong(at)trustcommerce(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PreparedStatements with PG specific data types.
Date: 2009-06-12 13:10:13
Message-ID: alpine.BSO.2.00.0906120909440.23295@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Page 2009-06-15 20:08:12 Testing - ignore.
Previous Message John Lister 2009-06-12 07:42:26 Re: Bad value for type BigDecimal : Y