Re: How to implement GOMONTH function - Mailing list pgsql-general

From Tom Lane
Subject Re: How to implement GOMONTH function
Date
Msg-id 10849.1180388657@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to implement GOMONTH function  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: How to implement GOMONTH function
List pgsql-general
"Andrus" <kobruleht2@hot.ee> writes:
> Why numeric(2) is not casted to integer automatically ?

Because it would lose data, eg '4.4' being rounded to 4.

            regards, tom lane

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: CUBE SYNTAX
Next
From: Tom Lane
Date:
Subject: Re: help with query...