Re: Problem with zero year

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problem with zero year
Дата
Msg-id 10562.1237308848@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problem with zero year  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Problem with zero year
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> The problem is that the 2-digit year check is for <=2 digits, not
> exactly two digits:
> ...
> This leads to some unexpected outputs:

>     test=> select '1-1-0'::date;
>        date
>     ------------
>      2000-01-01

We've interpreted that like that since 7.4, without complaints; and
I think it was an intentional change then (since 7.3 doesn't accept it).
I do not recommend changing it.
        regards, tom lane


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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: Solaris getopt_long and PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Solaris getopt_long and PostgreSQL