Skip site navigation (1) Skip section navigation (2)

7.1 euro-style dates insert error

From: Chris Storah <cstorah(at)emis-support(dot)demon(dot)co(dot)uk>
To: pgsql-bugs(at)postgresql(dot)org
Subject: 7.1 euro-style dates insert error
Date: 2001-04-27 07:58:43
Message-ID: 004e01c0ceef$e4d3b840$c60215ac@wkcws2k1 (view raw or flat)
Thread:
Lists: pgsql-bugs
7.0.x okay, 7.1 incorrect (CVS from 24th April):

create table test(aaa date);
insert into test(aaa) values ('23.10.1997');
insert into test(aaa) values ('13.10.1997');
insert into test(aaa) values ('2.10.1997');
select * from test;

gives:

    a
--------
1997-10-23
1997-10-13
1997-2-10

Automatically thinks that the last value is a US style date.
Date style is set to EURO, but I assume this has no affect on the date
parsing at insert time.
If the dates are entered as 'ccyy.mm.dd' it is okay - unfortunately all
my
dates are in the format 'dd.mm.ccyy'.

Is this a bug or a user error?

Thanks,
Chris



pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-04-27 09:49:29
Subject: Optimalisation options change query results
Previous:From: Robert E. BruccoleriDate: 2001-04-27 01:38:08
Subject: Re: FWD: broken SGI tarfiles

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group