Re: Re: [INTERFACES] Trouble with JDBC2 ResultSet.getDate()

Поиск
Список
Период
Сортировка
От Peter T Mount
Тема Re: Re: [INTERFACES] Trouble with JDBC2 ResultSet.getDate()
Дата
Msg-id 985165919.3ab8705f5ccb9@webmail.retep.org.uk
обсуждение исходный текст
Ответ на Re: [INTERFACES] Trouble with JDBC2 ResultSet.getDate()  (Barry Lind <barry@xythos.com>)
Список pgsql-jdbc
Quoting Barry Lind <barry@xythos.com>:

> Actually it was the changes in version 1.21 on 2/13 that broke this.
> The cvs log for that change includes the following comment:
>   - Removed need for SimpleDateFormat in ResultSet.getDate() improving
> performance.
>
> My guess is the the code as written would work correctly for a 'date'
> column, but doesn't work for a 'timestamp' column.  Is there a reason
> you are not using getTimestamp() to get the value of the timestamp
> column?

One of the first things I'm doing once 7.1 is out is add some sanity checking
so that the get/set methods on Date, Timestamp, integer, double etc so that
getDate() on a Timestamp would work, but also getTimestamp() on a Date column.

However, this isn't going to be that easy, and (when I thought of this) 7.1 was
already in beta - and this being new functionality couldn't be put in ;-)

Peter

--
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

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

Предыдущее
От: Juhan-Peep Ernits
Дата:
Сообщение: Re: Re: [INTERFACES] Trouble with JDBC2 ResultSet.getDate()
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: pg703: support for Large objects via JDBC PreparedStatement.setBi naryStream()