date overflows

From: Kris Jurka <books(at)ejurka(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: date overflows
Date: 2005-12-04 00:53:23
Message-ID: Pine.BSO.4.61.0512031947460.21763@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches


I'm seeing some date input overflows here. I tested on CVS HEAD
without --enable-integer-datetimes and 7.4.9 and 8.0.4 with
--enable-integer-datetimes, so it appears to have been around for a
while:

jurka=# select '111123456-01-01'::date;
date
---------------
5290466-07-05
(1 row)

jurka=# select '14824-01-01 BC'::date;
date
----------------
11744398-01-21
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Fuhr 2005-12-04 01:06:01 Re: date overflows
Previous Message Dirk Pirschel 2005-12-03 21:24:35 Re: BUG #2092: No answer to bug reports 1975 and 2055

Browse pgsql-patches by date

  From Date Subject
Next Message Michael Fuhr 2005-12-04 01:06:01 Re: date overflows
Previous Message Bruno Wolff III 2005-12-03 21:30:00 Re: Reduce NUMERIC size by 2 bytes, reduce max length to 508 digits