pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Colin Taylor <colin.taylor@gmail.com>
To: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: date/time out of range
Date: Tue, 18 Jan 2011 18:15:17 +1300
Message-ID: <4D3521E5.9030306@opencloud.com> (raw)
In-Reply-To: <AANLkTi=kQoWiJTdZitO1gxkKSFdrhEarWcH+ywny7oq3@mail.gmail.com>
References: <AANLkTi=zUztkJbc_N9aoQdS0eOwJWCCta79jNO3WCuAu@mail.gmail.com>
	<4D3514F3.5080301@opencloud.com>
	<AANLkTi=kQoWiJTdZitO1gxkKSFdrhEarWcH+ywny7oq3@mail.gmail.com>

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@opencloud.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



view thread (8+ messages)  latest in thread

Message-ID: <4D3521E5.9030306@opencloud.com>
Permalink:  ../4D3521E5.9030306@opencloud.com/
Also on:    postgresql.org/message-id/4D3521E5.9030306@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, colin.taylor@gmail.com
  Subject: Re: date/time out of range
  In-Reply-To: <4D3521E5.9030306@opencloud.com>
  References: <AANLkTi=zUztkJbc_N9aoQdS0eOwJWCCta79jNO3WCuAu@mail.gmail.com> <4D3514F3.5080301@opencloud.com> <AANLkTi=kQoWiJTdZitO1gxkKSFdrhEarWcH+ywny7oq3@mail.gmail.com> <4D3521E5.9030306@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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