From: Richard Huxton <dev@archonet.com>
To: Silke Trissl <trissl@informatik.hu-berlin.de>
To: pgsql-sql@postgresql.org
Subject: Re: date format in 7.4
Date: Fri, 20 Feb 2004 15:57:45 +0000
Message-ID: <200402201557.45008.dev@archonet.com> (raw)
In-Reply-To: <40362082.7070900@informatik.hu-berlin.de>
References: <40362082.7070900@informatik.hu-berlin.de>
On Friday 20 February 2004 14:58, Silke Trissl wrote:
> Hi,
>
> 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
> 5.
> 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).
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, trissl@informatik.hu-berlin.de
Subject: Re: date format in 7.4
In-Reply-To: <200402201557.45008.dev@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox