Re: Timestamp problem

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: Timestamp problem
Дата
Msg-id 3F1C373F.7070409@xythos.com
обсуждение исходный текст
Ответ на Timestamp problem  (Raymond Chui <raymond.chui@noaa.gov>)
Список pgsql-jdbc
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!
>



В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dmitry Tkach
Дата:
Сообщение: Re: Detecting 'socket errors' - closing the Connection object
Следующее
От: Dmitry Tkach
Дата:
Сообщение: Re: IN clauses via setObject(Collection) [Was: Re: Prepare