pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: work in progress: timestamp patch
Date: Tue, 26 Jul 2005 07:33:15 -0400
Message-ID: <4530E903-A144-4779-90CA-1477431E8280@fastcrypt.com> (raw)
In-Reply-To: <42E60F18.4010807@opencloud.com>
References: <42E57D80.4040501@opencloud.com>
	<F9D18D4E-C078-4791-896F-556D71A3D4CA@fastcrypt.com>
	<42E5C8D0.1080102@opencloud.com>
	<6825C778-2E49-4872-8C1C-428487CDB26E@fastcrypt.com>
	<42E60F18.4010807@opencloud.com>


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
>
>

view thread (10+ messages)  latest in thread

Message-ID: <4530E903-A144-4779-90CA-1477431E8280@fastcrypt.com>
Permalink:  ../4530E903-A144-4779-90CA-1477431E8280@fastcrypt.com/
Also on:    postgresql.org/message-id/4530E903-A144-4779-90CA-1477431E8280@fastcrypt.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: pg@fastcrypt.com, oliver@opencloud.com
  Subject: Re: work in progress: timestamp patch
  In-Reply-To: <4530E903-A144-4779-90CA-1477431E8280@fastcrypt.com>
  References: <42E57D80.4040501@opencloud.com> <F9D18D4E-C078-4791-896F-556D71A3D4CA@fastcrypt.com> <42E5C8D0.1080102@opencloud.com> <6825C778-2E49-4872-8C1C-428487CDB26E@fastcrypt.com> <42E60F18.4010807@opencloud.com> <4530E903-A144-4779-90CA-1477431E8280@fastcrypt.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