From: David Carlos Manuelda <StormByte@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6113: SET DATESTYLE='European' does not set datestyle output correctly
Date: Tue, 12 Jul 2011 04:32:11 GMT
Message-ID: <201107120432.p6C4WBZJ035452@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 6113
Logged by: David Carlos Manuelda
Email address: StormByte@gmail.com
PostgreSQL version: 9.0.4
Operating system: Gentoo Linux
Description: SET DATESTYLE='European' does not set datestyle output
correctly
Details:
According to Doc (http://www.postgresql.org/docs/7.2/static/sql-set.html),
there are different datestyles available to format date outputs.
But either is a bug in doc or is a bug in postgre itself, but 'European'
does not currently do what it is intended (it does nothing actually).
From documentation:
Testcase 1: OK
German
Use dd.mm.yyyy for numeric date representations.
SET DATESTYLE='German';
SELECT NOW()::DATE;
now
------------
12.07.2011
Testcase 2: FAIL!
SET DATESTYLE='European';
SELECT NOW()::DATE;
now
------------
12.07.2011
As you can see, SET DATESTYLE='European' just did nothing and did not change
it from last set which was 'German', and of course, it does not even outputs
what was expected and stated in documentation.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: StormByte@gmail.com
Subject: Re: BUG #6113: SET DATESTYLE='European' does not set datestyle output correctly
In-Reply-To: <201107120432.p6C4WBZJ035452@wwwmaster.postgresql.org>
References: <201107120432.p6C4WBZJ035452@wwwmaster.postgresql.org>
* 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