Re: ERROR: function round(double precision, integer) does - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: ERROR: function round(double precision, integer) does
Date
Msg-id 4047D712.5020200@commandprompt.com
Whole thread Raw
In response to ERROR: function round(double precision, integer) does not exist - WTF?  ("Glen Parker" <glenebob@nwlink.com>)
Responses Re: ERROR: function round(double precision, integer) does
List pgsql-general
> oms=# select round(1.25::decimal, 2);
>  round
> -------
>   1.25
> (1 row)
>
> BUT.............
>
> DB=# select round(1.25::float, 2);


select round(1.25::numeric, 2);


?

Sincerely,

Joshua D. Drake


> ERROR:  function round(double precision, integer) does not exist
> HINT:  No function matches the given name and argument types. You may need
> to add explicit type casts.
>
>
> What the heck?  This can't be right... Can it?
>
> Thx!
> Glen Parker
> glenebob@nwlink.com
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match

pgsql-general by date:

Previous
From: "Glen Parker"
Date:
Subject: ERROR: function round(double precision, integer) does not exist - WTF?
Next
From: Michael Chaney
Date:
Subject: Re: Moving from MySQL to PGSQL....some questions (multilevel