ERROR: function round(double precision, integer) does not exist - WTF?
| От | Glen Parker |
|---|---|
| Тема | ERROR: function round(double precision, integer) does not exist - WTF? |
| Дата | |
| Msg-id | 000901c4024e$63bbe760$0b01a8c0@saturn обсуждение исходный текст |
| Ответ на | Re: REFERENCES error message complaint, suggestion (Greg Stark <gsstark@mit.edu>) |
| Ответы |
Re: ERROR: function round(double precision, integer) does
Re: ERROR: function round(double precision, integer) does not exist - WTF? |
| Список | pgsql-general |
I'm having trouble with the round() function. What I am trying to do works
fine on 7.2.*, but not in 7.3.* or 7.4.*
DB=# select version();
PostgreSQL 7.4.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.2
20031107 (Red Hat Linux 3.3.2-2)
DB=# select round(1.25::float);
round
-------
1
(1 row)
oms=# select round(1.25::decimal, 2);
round
-------
1.25
(1 row)
BUT.............
DB=# select round(1.25::float, 2);
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
В списке pgsql-general по дате отправления: