Re: ERROR: function round(double precision, integer) does

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Glen Parker <glenebob(at)nwlink(dot)com>
Cc: Pg-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: function round(double precision, integer) does
Date: 2004-03-05 01:25:38
Message-ID: 4047D712.5020200@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)nwlink(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Chaney 2004-03-05 02:10:37 Re: Moving from MySQL to PGSQL....some questions (multilevel
Previous Message Glen Parker 2004-03-05 01:08:35 ERROR: function round(double precision, integer) does not exist - WTF?