X-Original-To: pgadmin-support-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 210D9CC399; Tue, 15 Jul 2003 19:15:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 63862-05; Tue, 15 Jul 2003 19:15:59 +0000 (GMT) Received: from ssmcmail.nems.noaa.gov (ssmcmail.nems.noaa.gov [205.156.4.221]) by svr1.postgresql.org (Postfix) with ESMTP id 0FB1DCC28B; Tue, 15 Jul 2003 16:15:30 -0300 (ADT) Received: from noaa.gov ([140.90.7.155]) by ssmcmail.nems.noaa.gov (Netscape Messaging Server 4.15) with ESMTP id HI2YUM00.51N; Tue, 15 Jul 2003 15:15:58 -0400 Message-ID: <3F1452EE.7000509@noaa.gov> Date: Tue, 15 Jul 2003 15:15:58 -0400 From: Raymond Chui Organization: NOAA NWS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en, zh, zh-CN, zh-TW, ja, ko, zh-cn, zh-hk, zh-sg MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org, pgsql-sql@postgresql.org, pgsql-bugs@postgresql.org, pgadmin-support@postgresql.org. Subject: Timestamp problem Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/133 X-Sequence-Number: 1733 I am use PostgreSQL 7.2.1 in Redhat Linux 7.2 Java 1.4.x When I do JDBC String sql = "SELECT datetime_column FROM mytable"; .... Timestamp ts = resultSet.getTimestamp(2); If the timestamp return format like 2003-07-15 13:20:00.20+00 then is OK. But if timestamp return like 2003-07-15 13:20:00.421+00 Then I got SQLException Bad Timestamp Format at 23 in 2003-07-14 14:45:00.421+00 What is 23? How do I resolve this problem? Thank Q! -- Raymond Chui NWS at NOAA 301-713-0640 ext 168