Re: Weird PG 8.1.3 date error

Поиск
Список
Период
Сортировка
От Tony Caduto
Тема Re: Weird PG 8.1.3 date error
Дата
Msg-id 45803A03.70805@amsoftwaredesign.com
обсуждение исходный текст
Ответ на Re: Weird PG 8.1.3 date error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> He needs to set DateStyle to match the expected field order.
>
> regression=# show datestyle;
>  DateStyle
> -----------
>  ISO, MDY
> (1 row)
>
> regression=# select '08-01-2006'::date;
>     date
> ------------
>  2006-08-01
> (1 row)
>
> regression=# set datestyle TO ymd;
> SET
> regression=# select '08-01-2006'::date;
> ERROR:  date/time field value out of range: "08-01-2006"
> HINT:  Perhaps you need a different "datestyle" setting.
> regression=#
>
>
Tom,
You were right on, that's exactly what the problem was.
I have not heard back, but I told him to set his datestyle back to the
default.

Thanks,

--
Tony


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Weird PG 8.1.3 date error
Следующее
От: Kevin Murphy
Дата:
Сообщение: Re: function accepting and returning rows; how to avoid