Re: Time input documentation error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Time input documentation error
Дата
Msg-id 18233.1061411086@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Time input documentation error  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Time input documentation error  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-docs
Bruno Wolff III <bruno@wolff.to> writes:
> area=> select '040506'::time;
> ERROR:  invalid input syntax for time: "040506"

Mph.  This worked in 7.1, but doesn't in 7.2 or later.  Also, we will
accept it if it's followed by either fractional seconds or a timezone.

regression=#  select '040506-04'::time;
   time
----------
 04:05:06
(1 row)

regression=#  select '040506.12'::time;
    time
-------------
 04:05:06.12
(1 row)


I'm inclined to say this is a code bug not a doc bug.

            regards, tom lane

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Time input documentation error
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Time input documentation error