Re: java.sql.ResultSet.getTime() returns wrong time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: java.sql.ResultSet.getTime() returns wrong time
Дата
Msg-id 9641.1284932600@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: java.sql.ResultSet.getTime() returns wrong time  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: java.sql.ResultSet.getTime() returns wrong time
Список pgsql-jdbc
Oliver Jowett <oliver@opencloud.com> writes:
> Did you see Kris's earlier response here? See
> http://archives.postgresql.org/pgsql-jdbc/2010-05/msg00052.php. The
> problem is we need to pass around a timezone offset, but JDBC +
> java.util.Date give us no way to do that without subclassing those types
> (which seems a bit hairy). Without that extra data, timetz just doesn't
> map well to any of the standard Java date/time types.

timetz is a fundamentally brain-dead data type to start with ---
it simply doesn't carry enough information to deal with timezones
meaningfully, at least not once you start considering DST changes.
This is the SQL standard's fault not ours, so there's not a lot
we can do about it other than recommend people avoid timetz.

            regards, tom lane

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: java.sql.ResultSet.getTime() returns wrong time
Следующее
От: "Bremer, Gerd"
Дата:
Сообщение: Re: Upload latest JDBC driver releases to Maven Central