Re: two minor issues with date time types - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: two minor issues with date time types
Date
Msg-id 20030814194550.Q2302-100000@megazone.bigpanda.com
Whole thread Raw
In response to two minor issues with date time types  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: two minor issues with date time types  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Thu, 14 Aug 2003, scott.marlowe wrote:

> Just two minor issues with timestamps:
>
> Error message is currently:
>
> create table test (ts timestamp);
> -- insert an illegal date:
> insert into test values ('20021131');
> invalid input syntax for timestamp: "20021131"
>
> SQL92 and 99 say it should be:
>
> data exception-datetime field overflow
>
> No big deal, and it doesn't matter to me if it gets changed or not really,
> just FYI.

I don't think that's intended to be the textual error message.
I believe that's supposed to indicate which SQLSTATE is generated.

pgsql-bugs by date:

Previous
From: "scott.marlowe"
Date:
Subject: two minor issues with date time types
Next
From: Tom Lane
Date:
Subject: Re: two minor issues with date time types