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

BUG #4702: refusal to compute date_trunc('week', '0001-12-09 BC');

From: "Roman Kononov" <kononov(at)ftml(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4702: refusal to compute date_trunc('week', '0001-12-09 BC');
Date: 2009-03-13 21:41:02
Message-ID: 200903132141.n2DLf2cw019303@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4702
Logged by:          Roman Kononov
Email address:      kononov(at)ftml(dot)net
PostgreSQL version: 8.3.6 and older
Operating system:   GNU/Linux x86_64
Description:        refusal to compute date_trunc('week', '0001-12-09 BC');
Details: 

test=# select date_trunc('week','0001-12-09 BC'::timestamp);
ERROR:  cannot calculate week number without year information

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2009-03-13 21:42:11
Subject: Re: Error in PLpgSQL with SELECT INTO and composite types
Previous:From: Heikki LinnakangasDate: 2009-03-13 20:44:54
Subject: Error in PLpgSQL with SELECT INTO and composite types

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