Re: Bug in AdjustIntervalForTypmod function - Mailing list pgsql-bugs

From Donald Fraser
Subject Re: Bug in AdjustIntervalForTypmod function
Date
Msg-id 008301c3197e$4c1c4280$1664a8c0@DEMOLITION
Whole thread Raw
In response to Bug in AdjustIntervalForTypmod function  ("Donald Fraser" <demolish@cwgsy.net>)
List pgsql-bugs
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Donald Fraser" <demolish@cwgsy.net>
Cc: "[BUGS]" <pgsql-bugs@postgresql.org>
Sent: Tuesday, May 13, 2003 6:44 PM
Subject: Re: [BUGS] Bug in AdjustIntervalForTypmod function


> "Donald Fraser" <demolish@cwgsy.net> writes:
> > ERROR:  AdjustIntervalForTypmod(): internal coding error
>
> You passed it a typmod that's illegal for INTERVAL, viz 0.

Having executed thus:
Bugs=>SELECT '7 Days'::interval(7);
ERROR:  INTERVAL(7) precision must be between 0 and 6

I assumed that the typmod for the interval_in function was in the above range.
Sorry about that.

Thanks
Donald.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug in AdjustIntervalForTypmod function
Next
From: Todd Nemanich
Date:
Subject: shared memory corruption