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 B00F156447 for ; Wed, 9 Mar 2005 21:15:20 +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 52215-01 for ; Wed, 9 Mar 2005 21:15:14 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 2BE2356374 for ; Wed, 9 Mar 2005 21:15:13 +0000 (GMT) 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 (Exim 3.35 #1 (Debian)) id 1D98Rp-0002cD-00; Thu, 10 Mar 2005 10:10:29 +1300 Message-ID: <422F6641.6030806@opencloud.com> Date: Thu, 10 Mar 2005 10:10:25 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) 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: <422CB915.7040204@opencloud.com> <422F3E9E.6080700@iwaysoftware.com> In-Reply-To: <422F3E9E.6080700@iwaysoftware.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/94 X-Sequence-Number: 12486 Sergio Lob wrote: > What format does PostgreSQL return in getString() method for a timestamp column, for example? Seems like it should return same as toString() method of a timestamp object as defined in java 2 api spec. It returns the string representation the backend gave it. This is true for all types at the moment. For a timestamp with timezone value this is generally going to be yyyy-mm-dd hh:mm:ss.nnnnnnzzz: test=# select now(); now ------------------------------- 2005-03-10 10:08:11.707753+13 (1 row) Does the JDBC spec say somewhere that we should return a different format? -O