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 5DCD452F23 for ; Tue, 26 Jul 2005 08:33:19 -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 77192-08 for ; Tue, 26 Jul 2005 11:33:14 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 4459A52F1A for ; Tue, 26 Jul 2005 08:33:13 -0300 (ADT) Received: (qmail 15198 invoked from network); 26 Jul 2005 11:33:17 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 26 Jul 2005 11:33:17 -0000 In-Reply-To: <42E60F18.4010807@opencloud.com> References: <42E57D80.4040501@opencloud.com> <42E5C8D0.1080102@opencloud.com> <6825C778-2E49-4872-8C1C-428487CDB26E@fastcrypt.com> <42E60F18.4010807@opencloud.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: multipart/alternative; boundary=Apple-Mail-17-188991141 Message-Id: <4530E903-A144-4779-90CA-1477431E8280@fastcrypt.com> Cc: "pgsql-jdbc@postgresql.org" From: Dave Cramer Subject: Re: work in progress: timestamp patch Date: Tue, 26 Jul 2005 07:33:15 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200507/321 X-Sequence-Number: 13469 --Apple-Mail-17-188991141 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On 26-Jul-05, at 6:23 AM, Oliver Jowett wrote: > Dave Cramer wrote: > >> On 26-Jul-05, at 1:23 AM, Oliver Jowett wrote: >> >>> I looked at this and the current code is certainly wrong. The >>> timezone >>> offset of a Timestamp (deprecated method!) returns the offset of the >>> JVM's default timezone always. We should indeed be passing the >>> target >>> calendar and using that. >>> >>> I've added that change to my patch. Interestingly none of the >>> regression >>> tests fail with it changed; we're very short on tests that >>> actually test >>> the with-Calendar code.. >>> >> Well, I actually think this little change is more of the problem >> than anything else. >> > > I don't understand what you mean -- are you saying we shouldn't > change this? No, I think this may be the bug that causes it to fail currently. Not that it shouldn't be overhauled. But this one is probably the most significant "bug" > > >> Did you manage to cobble together a patch for me to test ? >> > > I'll send you a current snapshot in an hour or so. I got > sidetracked into trying to work out the semantics of getDate() and > getTime() on a timestamptz, still haven't found an entirely > satisfactory solution.. OK. > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > > --Apple-Mail-17-188991141 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On 26-Jul-05, at = 6:23 AM, Oliver Jowett wrote:

Dave Cramer wrote:

On 26-Jul-05, at 1:23 AM, Oliver = Jowett wrote:

I looked at this and the current code is certainly = wrong. The timezone
offset of a Timestamp = (deprecated method!) returns the offset of the
JVM's default timezone always. We should indeed be = passing the target
calendar and using = that.

I've added that change to my patch. Interestingly = none of the=A0 = regression
tests fail with it changed; = we're very short on tests that actually=A0 test
the with-Calendar code..

Well, I actually think this little change is more of = the problem than=A0 = anything else.


I don't = understand what you mean -- are you saying we shouldn't change = this?
No, I think this may be the bug that causes it = to fail currently. Not that it shouldn't be overhauled. But this one = is=A0
probably the most significant "bug"

=
Did you = manage to cobble together a patch for me to test ?
=

I'll send you a current snapshot in an hour or so. I = got sidetracked into trying to work out the semantics of getDate() and = getTime() on a timestamptz, still haven't found an entirely satisfactory = solution..

OK.
-O
---------------------------(end = of broadcast)---------------------------
TIP 4: = Have you searched our list archives?

=A0 =A0 =A0 =A0 =A0 =A0 =A0 http://archives.postgresql.org=



= --Apple-Mail-17-188991141--