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 A41AC56607 for ; Fri, 11 Mar 2005 21:13:49 +0000 (GMT) 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 72871-07 for ; Fri, 11 Mar 2005 21:13:42 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id DDBDA5661A for ; Fri, 11 Mar 2005 21:13:40 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1D9rRy-0008Ip-00; Sat, 12 Mar 2005 10:13:38 +1300 Message-ID: <42320A01.2080102@opencloud.com> Date: Fri, 11 Mar 2005 21:13:37 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sergio_Lob@iwaysoftware.com Cc: pgsql-jdbc@postgresql.org, Ephraim_Spravtsev@iwaysoftware.com Subject: Re: [BUGS] BUG #1523: precision column value returned from References: <422F6641.6030806@opencloud.com> <4231B1A3.4050304@iwaysoftware.com> In-Reply-To: <4231B1A3.4050304@iwaysoftware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/120 X-Sequence-Number: 12512 Sergio Lob wrote: > By default, retrieving TIMESTAMP WITH TIME ZONE values as a timestamp > (using resultSet.getTimeStamp, for example) is not supported because the > time zone information stored in the database would be lost when the data > is converted to a timestamp. To provide backward compatibility with > existing applications, you can use the FetchTSWTZasTimestamp property to > allow TIMESTAMP WITH TIME ZONE values to be retrieved as a timestamp. > The default value of the FetchTSWTSasTimestamp property is false, which > disables retrieving TIMESTAMP WITH TIME ZONE values as timestamps." The current PostgreSQL driver allows retrieving it as either a String or a Timestamp -- application's choice. I don't see much value in an option to enable/disable retrieving it as a Timestamp TBH. > Oracle recognizes that the JDBC timestamp data type does not allow for > timezones, thus they would map PostgresSQL timestamptz type to JDBC type > varchar, not timestamp. They actually do this? I'd map it to timestamp at a lower preference (later in the resultset); TIMESTAMP WITH TIME ZONE is closer to a TIMESTAMP than to a VARCHAR.. -O