Re: Timestamp problem

From: Barry Lind <blind(at)xythos(dot)com>
To: Raymond Chui <raymond(dot)chui(at)noaa(dot)gov>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Timestamp problem
Date: 2003-07-21 18:55:59
Message-ID: 3F1C373F.7070409@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-bugs pgsql-jdbc pgsql-sql

Raymond,

Upgrade to the latest stable driver. You can download it from
jdbc.postgresql.org.

--Barry

Raymond Chui wrote:
> 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!
>

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Andreas Pflug 2003-07-21 22:24:54 Re: Error on most recent slackware build
Previous Message Andreas Pflug 2003-07-21 16:44:29 Re: Error on most recent slackware build

Browse pgsql-bugs by date

  From Date Subject
Next Message Boris Folgmann 2003-07-21 19:24:44 Silent deadlock
Previous Message DeJuan Jackson 2003-07-21 18:11:18 Re: [GENERAL] INSTEAD rule bug?

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dmitry Tkach 2003-07-21 19:16:39 Re: IN clauses via setObject(Collection) [Was: Re: Prepare
Previous Message Dmitry Tkach 2003-07-21 18:53:06 Re: Detecting 'socket errors' - closing the Connection object

Browse pgsql-sql by date

  From Date Subject
Next Message Cristian Cappo A. 2003-07-21 19:17:27 Re: How access to array component
Previous Message Tom Lane 2003-07-21 15:43:19 Re: min() and NaN