pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PreparedStatements with PG specific data types.
2+ messages / 2 participants
[nested] [flat]

* PreparedStatements with PG specific data types.
@ 2009-06-12 00:44 Johnny Luong <johnny.luong@trustcommerce.com>
  2009-06-12 13:10 ` Re: PreparedStatements with PG specific data types. Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Johnny Luong @ 2009-06-12 00:44 UTC (permalink / raw)
  To: pgsql-jdbc

-----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-----



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PreparedStatements with PG specific data types.
  2009-06-12 00:44 PreparedStatements with PG specific data types. Johnny Luong <johnny.luong@trustcommerce.com>
@ 2009-06-12 13:10 ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2009-06-12 13:10 UTC (permalink / raw)
  To: Johnny Luong <johnny.luong@trustcommerce.com>; +Cc: 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2009-06-12 13:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-12 00:44 PreparedStatements with PG specific data types. Johnny Luong <johnny.luong@trustcommerce.com>
2009-06-12 13:10 ` Kris Jurka <books@ejurka.com>

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