Re: to_date_valid()

Поиск
Список
Период
Сортировка
От Artur Zakirov
Тема Re: to_date_valid()
Дата
Msg-id 95738e12-6ed6-daf5-9dcf-6336072e6b15@postgrespro.ru
обсуждение исходный текст
Ответ на Re: to_date_valid()  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Ответы Re: to_date_valid()  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Список pgsql-hackers
On 14.08.2016 01:52, Andreas 'ads' Scherbaum wrote:
>
> Attached is a patch to "do the right thing". The verification is in
> "to_date()" now, the extra function is removed. Regression tests are
> updated - two or three of them returned a wrong date before, and still
> passed. They fail now. Documentation is also updated.
>
>
> Regards,
>

Is it right and "true" way to validate date by extra transforming and
comparison?

Maybe validate date by using ValidateDate(). Attached sample patch.

--
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company

Вложения

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

Предыдущее
От: Mark Kirkwood
Дата:
Сообщение: Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)
Следующее
От: Andrew Borodin
Дата:
Сообщение: Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)