On Friday 20 February 2004 14:58, Silke Trissl wrote:
> I have an application where users can enter the date via a web interface.
> Recently I upgrated my PostgreSQL version from 7.3 to 7.4.1.
> On 7.3 I run several tests about the format of the date and found,
> that Postgres accepts almost everything. Today I found out, that 7.4.1
> only accepts dates in the format mm-dd-yy, although the documentation
> still states the following
> Otherwise the date field ordering is assumed to follow the
> DateStyle setting: mm-dd-yy, dd-mm-yy, or yy-mm-dd. Throw an error if a
> month or day field is found to be out of range.
I think what happened is that it will now *only* accept the format specified
by your datestyle setting. Previously, as you say, it would have a guess at
almost anything (and sometimes get it wrong).
In response to
pgsql-sql by date
|Next:||From: Tom Lane||Date: 2004-02-20 16:37:13|
|Subject: Re: Creating constraint sometime fail in a transaction |
|Previous:||From: Olivier Hubaut||Date: 2004-02-20 15:49:57|
|Subject: Creating constraint sometime fail in a transaction|