pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7942: Timestamp "19991231 240000" should not be out of range
2+ messages / 2 participants
[nested] [flat]
* BUG #7942: Timestamp "19991231 240000" should not be out of range
@ 2013-03-14 08:47 georg.kindermann@gmx.at
0 siblings, 1 reply; 2+ messages in thread
From: georg.kindermann@gmx.at @ 2013-03-14 08:47 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 7942
Logged by: Georg Kindermann
Email address: georg.kindermann@gmx.at
PostgreSQL version: 9.1.8
Operating system: Debian Wheezy
Description:
select cast('19991231 240000' as timestamp);
--Produces >ERROR: timestamp out of range<
select cast('20000101 000000' as timestamp);
--Works
--For other years both styles work e.g
select cast('19981231 240000' as timestamp);
select cast('19990101 000000' as timestamp);
--1999 to 2000 is no Leap second. Is there something other special? Thanks!
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #7942: Timestamp "19991231 240000" should not be out of range
@ 2013-03-15 03:21 Tom Lane <tgl@sss.pgh.pa.us>
parent: georg.kindermann@gmx.at
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2013-03-15 03:21 UTC (permalink / raw)
To: georg.kindermann@gmx.at; +Cc: pgsql-bugs
georg.kindermann@gmx.at writes:
> select cast('19991231 240000' as timestamp);
> --Produces >ERROR: timestamp out of range<
Oddly enough, I just fixed that last week:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=542eeba26992305d872be699158cb3ab1c...
Weird how a bug can go unnoticed for ten years and then two people trip
over it at almost the same time.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-03-15 03:21 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-03-14 08:47 BUG #7942: Timestamp "19991231 240000" should not be out of range georg.kindermann@gmx.at
2013-03-15 03:21 ` Tom Lane <tgl@sss.pgh.pa.us>
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