X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A537252C3A for ; Fri, 12 Aug 2005 19:10:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39721-10 for ; Fri, 12 Aug 2005 22:10:38 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id DF6CC52C14 for ; Fri, 12 Aug 2005 19:10:36 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E3hja-0007au-OV; Sat, 13 Aug 2005 10:10:38 +1200 Message-ID: <42FD1E5E.5070808@opencloud.com> Date: Sat, 13 Aug 2005 10:10:38 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: "pgsql-jdbc@postgresql.org" Subject: Re: Timestamp changes committed to HEAD References: <42EDC90C.4040506@opencloud.com> In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 tagged_above=0 required=5 tests=[AWL=0.009] X-Spam-Level: X-Archive-Number: 200508/94 X-Sequence-Number: 13663 Kris Jurka wrote: > > > On Mon, 1 Aug 2005, Oliver Jowett wrote: > >> I've committed my Timestamp/Date/Time changes to CVS HEAD. > > > The regression tests fail on 7.2 and 7.3 with the below stacktrace. I > understand that we may not be able to achieve 100% correctness with > 7.2/7.3, but aren't there at least certain cases that work? There certainly are cases that work, but that test isn't one of them. Per my commit comments, this test is the case of setTimestamp() on a 'time without timezone' column. 7.4 was the first version to accept (and discard) a timezone in this case. We don't know ahead of time that the target parameter is a 'time without timezone' (and can't for pre-7.4 even if we wanted to, since there's no V3 protocol support), and if we omitted the timezone information then using setTimestamp() against timestamp fields would produce incorrect results. If you're suggesting we skip that particular case so we can run the rest of the testcase on 7.2/7.3, it's a good idea but more work than I had time for -- feel free to update the test as necessary. -O