pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Interval type
2+ messages / 2 participants
[nested] [flat]

* Interval type
@ 2004-12-13 19:39  Ricardo Vaz Mannrich <rvm_l1@silcom.com.br>
  0 siblings, 1 reply; 2+ messages in thread

From: Ricardo Vaz Mannrich @ 2004-12-13 19:39 UTC (permalink / raw)
  To: pgsql-jdbc

How can I get an interval value with JDBC?

-- 
Ricardo Vaz Mannrich <rvm_l1@silcom.com.br>




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

* Re: Interval type
@ 2004-12-13 22:13  Kris Jurka <books@ejurka.com>
  parent: Ricardo Vaz Mannrich <rvm_l1@silcom.com.br>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2004-12-13 22:13 UTC (permalink / raw)
  To: Ricardo Vaz Mannrich <rvm_l1@silcom.com.br>; +Cc: pgsql-jdbc



On Mon, 13 Dec 2004, Ricardo Vaz Mannrich wrote:

> How can I get an interval value with JDBC?
> 

There is no corresponding Java type for an interval, so the best you can 
do is ResultSet.getString().  The driver has a stub class 
org.postgresql.util.PGInterval that will be returned by getObject().  It 
would be nice if someone added a real implementation that could parse an 
interval string and methods that returned the individual fields.

Kris Jurka



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


end of thread, other threads:[~2004-12-13 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-12-13 19:39 Interval type Ricardo Vaz Mannrich <rvm_l1@silcom.com.br>
2004-12-13 22:13 ` 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