Re: Problem in converting int to timestamp value - why?

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: Problem in converting int to timestamp value - why?
Дата
Msg-id 1095672034.2836.24.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: Problem in converting int to timestamp value - why?  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
On Sun, 2004-09-19 at 16:09 -0600, Michael Fuhr wrote:
> On Sun, Sep 19, 2004 at 12:31:26PM -0400, Tom Lane wrote:
> > Michael Fuhr <mike@fuhr.org> writes:
> > > The leading space is confusing to_timestamp():
> >
> > >   test=> SELECT to_timestamp(' 2004 12 17', 'YYYY MM DD');
> > >       to_timestamp
> > >   ---------------------
> > >    2171-11-06 06:00:00
> >
> > I'd still say this is a bug.  If to_timestamp can't match the input to
> > the pattern, it should throw an error, not silently return garbage.

I already start work on new to_char() that will more paranoid, for now
is enough for right usage follow docs.

    Karel

--
Karel Zak
http://home.zf.jcu.cz/~zakkr/


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

Предыдущее
От: Shridhar Daithankar
Дата:
Сообщение: Re: using schemas to create a virtual DB?
Следующее
От: lists@petri.cc
Дата:
Сообщение: Weird behavior with selects and composite data types