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 73440D1B19A for ; Sun, 11 Jul 2004 21:50:13 -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 34716-05 for ; Mon, 12 Jul 2004 00:50:11 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 0DFA5D1B190 for ; Sun, 11 Jul 2004 21:50:07 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1Bjp1B-0002M9-00; Mon, 12 Jul 2004 12:50:05 +1200 Message-ID: <40F1E038.20609@opencloud.com> Date: Mon, 12 Jul 2004 12:50:00 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Dario V. Fassi" Cc: "pgsql-jdbc@postgresql.org" Subject: Re: Timestamp Question References: <40F012E4.3000001@markhamdirect.com> <40F02556.1070109@sistemat.com.ar> <1089552466.11544.311.camel@localhost.localdomain> <40F19294.8090700@sistemat.com.ar> <40F1D5D8.2000205@opencloud.com> <40F1DFA1.20407@sistemat.com.ar> In-Reply-To: <40F1DFA1.20407@sistemat.com.ar> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200407/104 X-Sequence-Number: 10488 Dario V. Fassi wrote: > You are seeing it: > > > test=> select '2004-07-10 12:59:59.123'::timestamp(6); > > timestamp ------------------------- > > 2004-07-10 12:59:59.123 > > I suggest that is cross DBs (eg. DB2 / PgSql etc) , the above > situation cause troubles. Sounds like it's not a JDBC problem though -- perhaps you should take it up on pgsql-general or pgsql-sql? > ** From a Jdbc client can see rows like: > 2004-07-10 12:59:59.123 > > in plase of: > > 2004-07-10 12:59:59.12300 > or > 2004-07-10 12:59:59.00123 If you're using JDBC, you should be using ResultSet.getTimestamp(), not interpreting the strings directly. Do you have a testcase that uses getTimestamp() and sees an incorrect value? -O