Re: BUG #6231: weird to_timestamp behaviour with out of range values

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: BUG #6231: weird to_timestamp behaviour with out of range values
Дата
Msg-id 20111002000023.GC12765@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: BUG #6231: weird to_timestamp behaviour with out of range values  (Henk Enting <h.d.enting@mgrid.net>)
Список pgsql-bugs
* Henk Enting (h.d.enting@mgrid.net) wrote:
> But still, I think the to_timestamp should throw an error if I put in
> something like '21-21-2011'.

I agree completely, this is a pretty big bug in my opinion.  We don't
accept invalid or garbage timestamps in the input function, I don't see
any reason why we should be allowing it in to_timestamp().  If the
values at the 'MM' location are outside of the valid range, we should be
throwing an error.

    Thanks,

        Stephen

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

Предыдущее
От: Evan Martin
Дата:
Сообщение: Re: BUG #6235: Delete fails with ON DELETE rule on inherited table
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [GENERAL] One-click installer, Windows 7 32-bit, and icacls.exe