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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: dasgupta(at)intelesoftech(dot)com, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Bug #761: Date format ambiguity while insertion!!!!
Date: 2002-09-09 18:41:50
Message-ID: Pine.LNX.4.44.0209091920200.18819-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Sean Chittenden 2002-09-09 18:56:15 Re: ecpg hackery to get ecpg to compile from FreeBSD ports...
Previous Message Peter Eisentraut 2002-09-09 18:40:11 Re: pg_config Makefile bogon...