Re: to_date problem.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: to_date problem.
Дата
Msg-id 19268.1023978640@sss.pgh.pa.us
обсуждение исходный текст
Ответ на to_date problem.  (lewwid <lewwid@telusplanet.net>)
Список pgsql-bugs
lewwid <lewwid@telusplanet.net> writes:
> select to_date('January 12 2002','Month dd yyyy');
>   to_date
> ------------
>  0005-06-24     <----- Problem right there.

I think you need FM:

regression=# select to_date('January 12 2002','FMMonth dd yyyy');
  to_date
------------
 2002-01-12
(1 row)

Without that, the to_date scanner assumes it should be dealing with
fixed-width fields.  I think this is moderately broken myself, but
maybe that's the way Oracle does it...

            regards, tom lane

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

Предыдущее
От: Chris Sutton
Дата:
Сообщение: select real returns nothing
Следующее
От: Massimiliano Panichi
Дата:
Сообщение: cannot connect to database and strange error