Re: date/time out of range

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Colin Taylor <colin(dot)taylor(at)gmail(dot)com>, pgsql-jdbc <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: date/time out of range
Date: 2011-01-18 05:15:17
Message-ID: 4D3521E5.9030306@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Please remember to cc: the list when you reply.

On 18/01/11 18:01, Colin Taylor wrote:
> On Tue, Jan 18, 2011 at 5:20 PM, Oliver Jowett<oliver(at)opencloud(dot)com> wrote:
>> On 18/01/11 17:00, Colin Taylor wrote:
>>>
>>> This error confuses me:
>>>
>>> 10127 Caused by: org.postgresql.util.PSQLException: ERROR: date/time
>>> field value out of range: "2011-01-12 21:30:00.000000 +13:00:00"
>>
>> You should show us the code that generates this error, and your schema.
>>
>> Oliver
>>
>
> select id, name, address_type_id, default_timezone, customer_ref,
> from_date from domain where
> (from_date<= '2011-01-12 21:30:00.000000 +13:00:00' or from_date is
> null) and (thru_date is null or
> thru_date> '2011-01-12 21:30:00.000000 +13:00:00') and
> address_type_id = '10' and name in ('ALL','<>');

Well.. that's not JDBC code, is it? If I run that in psql against 8.4.5,
it runs just fine and I see no error. How do you actually construct and
execute that query via JDBC?

We need a selfcontained test case that compiles and runs "out of the
box" showing the problem. Otherwise I don't think anyone can help you here.

Oliver

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Samuel Gendler 2011-01-18 05:29:59 Re: date/time out of range
Previous Message Oliver Jowett 2011-01-18 04:20:03 Re: date/time out of range