Re: dealing with invalid date

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: dealing with invalid date
Дата
Msg-id 1097985911.21035.12.camel@localhost.localdomain
обсуждение исходный текст
Ответ на dealing with invalid date  (Mage <mage@mage.hu>)
Список pgsql-general
On Sat, 2004-10-16 at 21:03, Mage wrote:
>           Hi,
>
> can pgsql acceppt invalid date values? Sometimes it would be nice to
> convert 2003-02-29 to 2003-03-01 or to 2003-02-28 automatically instead
> of throwing back an error message.

If you're using a language with a date / time lib that does that, just
massage it through there first.

PostgreSQL is known for following the SQL spec, and more importantly for
considering your data to be important.  Carelessly munging dates to fit
them into a date field is a bad thing when it comes to your data.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql function using C++?, or at least C interfacing with C++ lib?
Следующее
От: "Net Virtual Mailing Lists"
Дата:
Сообщение: Re: Tsearch2 trigger firing...