Re: this date format thing.

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема Re: this date format thing.
Дата
Msg-id 3E8B4E52.9090605@cvc.net
обсуждение исходный текст
Ответ на this date format thing.  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-general
I feel the same way. What does the SQL standards say, gurus?

scott.marlowe wrote:
> OK, this has been bugging me for days.  One of the things I like about
> Postgresql is that if you give it a data constraint it follows it.
> Sometimes it even seems a bit overzealous, but I'd rather fix my code than
> the user's data.
>
> So, this thing with the date fields not being able to be forced into a
> certain format is kinda bothersome to me.  No matter how much people argue
> for the application code being the gate master, I'm much happier when I
> know my database won't swallow things it shouldn't.
>
> While I don't mind writing my own trigger to handle this, it seems like
> for joe average user there should be some strict setting that can be
> applied to force the dates to be in the right order format or to be
> assumed to be bad and tossed out.
>
> While situations where 04-02 would get put in when the user meant 02-04,
> at least enough of the 02-13 cases would throw an error that the user
> would know they had been doing something wrong along the way and would
> hopefully go back and look at their data.
>
> The way Postgresql deals with this kinda reminds me of the way MySQL deals
> with data that's out of bounds.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


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

Предыдущее
От: Hadley Willan
Дата:
Сообщение: Joins and their efficiencies
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Backend often crashing