Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9CB091337B39 for ; Tue, 18 Jan 2011 01:15:31 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 32432-03 for ; Tue, 18 Jan 2011 05:15:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 7A31E133655C for ; Tue, 18 Jan 2011 01:15:23 -0400 (AST) Received: from deluge.opencloud.co.nz ([192.168.0.16]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Pf3uX-0006Py-QR; Tue, 18 Jan 2011 18:15:17 +1300 Message-ID: <4D3521E5.9030306@opencloud.com> Date: Tue, 18 Jan 2011 18:15:17 +1300 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Colin Taylor , pgsql-jdbc Subject: Re: date/time out of range References: <4D3514F3.5080301@opencloud.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201101/44 X-Sequence-Number: 21376 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 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