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

From Tom Lane
Subject Re: Bug in AdjustIntervalForTypmod function
Date
Msg-id 19433.1052847892@sss.pgh.pa.us
Whole thread Raw
In response to Bug in AdjustIntervalForTypmod function  ("Donald Fraser" <demolish@cwgsy.net>)
List pgsql-bugs
"Donald Fraser" <demolish@cwgsy.net> writes:
> ERROR:  AdjustIntervalForTypmod(): internal coding error

You passed it a typmod that's illegal for INTERVAL, viz 0.

-1 is the correct default typmod if you don't know the conventions
for a particular type's typmod values.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Donald Fraser"
Date:
Subject: Bug in AdjustIntervalForTypmod function
Next
From: "Donald Fraser"
Date:
Subject: Re: Bug in AdjustIntervalForTypmod function