Validation in to_date()

Поиск
Список
Период
Сортировка
От Hitoshi Harada
Тема Validation in to_date()
Дата
Msg-id CAP7QgmkvW6KeogQnNJHno1pyb7ifqQGShGoygN=fxsuv+36hdQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Validation in to_date()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
to_date() doesn't check the date range, which results in unreadable
data like this.

foo=# create table t as select to_date('9999-12-10 BC', 'YYYY-MM-DD
BC')::timestamp;
SELECT 1
foo=# table t;
ERROR:  timestamp out of range

Attached is to add IS_VALID_JULIAN() as we do like in date_in().  I
think to_date() should follow it because it is the entrance place to
check sanity.

Thanks,
--
Hitoshi Harada

Вложения

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

Предыдущее
От: Amit kapila
Дата:
Сообщение: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: Proposal for Allow postgresql.conf values to be changed via SQL [review]