Re: Bug #761: Date format ambiguity while insertion!!!!

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Bug #761: Date format ambiguity while insertion!!!!
Дата
Msg-id Pine.LNX.4.44.0209091920200.18819-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Bug #761: Date format ambiguity while insertion!!!!  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
> My datestyle settings have been set as "ISO US(non european)" This would
> mean that my date values should get inserted in the mm-dd-yyyy format.

No.

First, "ISO" is only the output format.  Input is still accepted in most
"reasonable" forms.  Second, the "US" setting only defines how to resolve
input if there is ambiguity.  Third, the format you are using wouldn't
qualify as ISO either way you look at it.

> This may be a flexibility feature but then this I believe is extremely
> dangerous as it would accept user-errors without the user knowing it.

Yes, that's a good point.  But narrowing down the accepted formats would
probably break a lot of code, since the acceptable date formats tend to
vary heavily in the pretends-to-be-SQL world.

--
Peter Eisentraut   peter_e@gmx.net

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_config Makefile bogon...
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: ecpg hackery to get ecpg to compile from FreeBSD ports...