pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
"Conversion of interval failed" on PGInterval with 8.1dev-401.jdbc3.jar
3+ messages / 2 participants
[nested] [flat]

* "Conversion of interval failed" on PGInterval with 8.1dev-401.jdbc3.jar
@ 2005-09-29 20:45 Jean-Pierre Pelletier <pelletier_32@sympatico.ca>
  2005-09-29 21:12 ` Re: "Conversion of interval failed" on PGInterval with Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Jean-Pierre Pelletier @ 2005-09-29 20:45 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,

I've got PSQLException "Conversion of interval failed"
 throwned when trying to read an interval larger than
100 hours (101:12:00) into a PGInterval object.
It was running fine with the build 312 jdbc3 driver.

Here is the line of code which cause the error:

PGInterval interval = (PGInterval) resultset.getObject(1);

I am running PostgreSQL 8.1 beta2 on Windows 2000.

Thanks
Jean-Pierre Pelletier
e-djuster

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

* Re: "Conversion of interval failed" on PGInterval with
  2005-09-29 20:45 "Conversion of interval failed" on PGInterval with 8.1dev-401.jdbc3.jar Jean-Pierre Pelletier <pelletier_32@sympatico.ca>
@ 2005-09-29 21:12 ` Kris Jurka <books@ejurka.com>
  2005-09-29 23:21   ` Re: "Conversion of interval failed" on PGInterval with Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Kris Jurka @ 2005-09-29 21:12 UTC (permalink / raw)
  To: Jean-Pierre Pelletier <pelletier_32@sympatico.ca>; +Cc: pgsql-jdbc



On Thu, 29 Sep 2005, Jean-Pierre Pelletier wrote:

> I've got PSQLException "Conversion of interval failed"
> throwned when trying to read an interval larger than
> 100 hours (101:12:00) into a PGInterval object.
> It was running fine with the build 312 jdbc3 driver.
>

OK, this is because 8.1 has separated hours and days in an interval 
definition, previously 100 hours turned into '4 days 4 hours', but in 8.1 
it remains 100 hours.  I'll look at a fix...

Kris Jurka



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

* Re: "Conversion of interval failed" on PGInterval with
  2005-09-29 20:45 "Conversion of interval failed" on PGInterval with 8.1dev-401.jdbc3.jar Jean-Pierre Pelletier <pelletier_32@sympatico.ca>
  2005-09-29 21:12 ` Re: "Conversion of interval failed" on PGInterval with Kris Jurka <books@ejurka.com>
@ 2005-09-29 23:21   ` Kris Jurka <books@ejurka.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Kris Jurka @ 2005-09-29 23:21 UTC (permalink / raw)
  To: Jean-Pierre Pelletier <pelletier_32@sympatico.ca>; +Cc: pgsql-jdbc



On Thu, 29 Sep 2005, Kris Jurka wrote:

> On Thu, 29 Sep 2005, Jean-Pierre Pelletier wrote:
>
>> I've got PSQLException "Conversion of interval failed"
>> throwned when trying to read an interval larger than
>> 100 hours (101:12:00) into a PGInterval object.
>> It was running fine with the build 312 jdbc3 driver.
>> 
>
> OK, this is because 8.1 has separated hours and days in an interval 
> definition, previously 100 hours turned into '4 days 4 hours', but in 8.1 it 
> remains 100 hours.  I'll look at a fix...
>

I've fixed this in cvs for the 8.1 branch.

Kris Jurka




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


end of thread, other threads:[~2005-09-29 23:21 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-29 20:45 "Conversion of interval failed" on PGInterval with 8.1dev-401.jdbc3.jar Jean-Pierre Pelletier <pelletier_32@sympatico.ca>
2005-09-29 21:12 ` Re: "Conversion of interval failed" on PGInterval with Kris Jurka <books@ejurka.com>
2005-09-29 23:21   ` Re: "Conversion of interval failed" on PGInterval with 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