Re: PreparedStatement.setDate() behavior with OVERLAPS

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: PreparedStatement.setDate() behavior with OVERLAPS
Дата
Msg-id CADK3HH+kxuK+zJvLMf4Mm111f6gbA=eL0X5pRL_Z+HF+tUi_Uw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PreparedStatement.setDate() behavior with OVERLAPS  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PreparedStatement.setDate() behavior with OVERLAPS
Список pgsql-jdbc

On 11 August 2015 at 11:00, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Dave Cramer <pg@fastcrypt.com> writes:
> Here are the comments in the code.
>   // We must use UNSPECIFIED here, or inserting a Date-with-timezone into a
>   // timestamptz field does an unexpected rotation by the server's TimeZone:

Ugh.  But why not send it as a timestamptz?

Unfortunately we do the same thing with times and timestamps. 
We don't parse the sql so we don't know if there is TZ information. 

If the underlying column is a timestamp and we set the oid to timstamptz then it fails. IIRC

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PreparedStatement.setDate() behavior with OVERLAPS
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: PreparedStatement.setDate() behavior with OVERLAPS