Re: Date-Time dangling unit fix

Поиск
Список
Период
Сортировка
От Joseph Koshakow
Тема Re: Date-Time dangling unit fix
Дата
Msg-id CAAvxfHeWKnpZ8J76i8a++ZuwAJVJ94gAi-syf7pNnCd22Jo-Sg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Date-Time dangling unit fix  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Date-Time dangling unit fix  (Joseph Koshakow <koshy44@gmail.com>)
Список pgsql-hackers
On Sun, Mar 5, 2023 at 12:54 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> We do accept this:
>
> => select '12:34'::time;
>    time  
> ----------
>  12:34:00
> (1 row)
>
> so that must be going through a different code path, which I didn't
> try to identify yet.

That query will contain a single field of "12:34" with ftype DTK_TIME.
That will call into DecodeTime(), which calls into DecodeTimeCommon(),
where we have:

*tmask = DTK_TIME_M;

- Joe Koshakow

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [PATCH] Add CANONICAL option to xmlserialize
Следующее
От: Joseph Koshakow
Дата:
Сообщение: Re: Date-Time dangling unit fix