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 CCEB252A14 for ; Tue, 19 Jul 2005 22:58:25 -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 31023-07 for ; Wed, 20 Jul 2005 01:58:15 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id CE4E352982 for ; Tue, 19 Jul 2005 22:58:13 -0300 (ADT) Received: (qmail 17413 invoked from network); 20 Jul 2005 01:58:18 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 20 Jul 2005 01:58:18 -0000 In-Reply-To: <42DDABAE.7050009@opencloud.com> References: <90876a9e05071810503606d431@mail.gmail.com> <16335.1121714809@sss.pgh.pa.us> <10C90079-DD0A-43D7-9389-7486803F0AB1@fastcrypt.com> <42DC37AC.5030704@opencloud.com> <42DCF0C9.4030501@opencloud.com> <23396.1121781259@sss.pgh.pa.us> <392278AB-987F-40CF-B59D-DDF53B9A4ACF@fastcrypt.com> <90876a9e050719093261c52c64@mail.gmail.com> <42DDABAE.7050009@opencloud.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <15EA293E-6D5D-4FD2-B498-6546113822C1@fastcrypt.com> Cc: Christian Cryder , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Timestamp Conversion Woes Redux Date: Tue, 19 Jul 2005 21:58:16 -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 X-Spam-Level: X-Archive-Number: 200507/161 X-Sequence-Number: 13309 Christian suggested this: However I think this too opaque. Not to mention the fact that it changes the current behaviour. Dave On 19-Jul-05, at 9:41 PM, Oliver Jowett wrote: > Christian Cryder wrote: > > >> From my perspective, there needs to be a way for the JDBC driver to >> know what type of timestamp you are working with. [...] >> > > How about this mapping? > > setTimestamp(int,Timestamp) -> timestamp > setTimestamp(int,Timestamp,Calendar) -> timestamptz > > -O > > ---------------------------(end of > broadcast)--------------------------- > TIP 6: explain analyze is your friend > >