Re: Why Not MySQL?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why Not MySQL?
Дата
Msg-id 17692.957387698@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why Not MySQL?  ("Mitch Vincent" <mitch@huntsvilleal.com>)
Список pgsql-hackers
"Mitch Vincent" <mitch@huntsvilleal.com> writes:
> Hmm, something else that I see that might break some code between 6.5.* and
> 7.0 (it did mine) is the fact that dates and date times are returned the
> reverse that they use to be.

ISO format to be exact... not just the reverse order, but different layout.

It's always been possible to break unsuspecting apps by changing the
DATESTYLE; I think it's good practice for an app to set DATESTYLE for
itself, if it's dependent on a particular setting.

> No big deal but just out of curiosity, why the change?

ISO and Y2K political correctness ;-).  If you don't like it, set
DATESTYLE to the old default ('Postgres' I think).  It's also possible
to change the system-wide default with a suitable postmaster switch,
but I forget the details.
        regards, tom lane


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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: Why Not MySQL?
Следующее
От: Andrew McMillan
Дата:
Сообщение: Re: Why Not MySQL?