Thread: PreparedStatements with PG specific data types.

PreparedStatements with PG specific data types.

From
Johnny Luong
Date:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

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.

Thanks,
Johnny


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoxpNcACgkQnQTBLXttTeVKqgCfZl/987TJTIl1Ls0PX+Sf0lHk
ig8An0ig27RaP/QWnwSW8gaTiI1scKty
=7vow
-----END PGP SIGNATURE-----

Re: PreparedStatements with PG specific data types.

From
Kris Jurka
Date:

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