Re: [SQL] Re: SQL error: function round(double precision, integer) does not exist

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Re: SQL error: function round(double precision, integer) does not exist
Дата
Msg-id 16203.1495734888@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [SQL] Re: SQL error: function round(double precision, integer) does notexist  (Vladimir Nicolici <vladnc@gmail.com>)
Ответы Re: [SQL] Re: SQL error: function round(double precision, integer)does not exist  (Vladimir Nicolici <vladnc@gmail.com>)
Список pgsql-sql
Vladimir Nicolici <vladnc@gmail.com> writes:
> Any plans to fix this annoyance?

Not particularly.  Making round() work with floats seems questionable,
since the result frequently couldn't be represented exactly, making the
whole exercise a bit pointless.  Why don't you cast the float to numeric?
        regards, tom lane



В списке pgsql-sql по дате отправления:

Предыдущее
От: Vladimir Nicolici
Дата:
Сообщение: [SQL] Re: SQL error: function round(double precision, integer) does notexist
Следующее
От: Vladimir Nicolici
Дата:
Сообщение: Re: [SQL] Re: SQL error: function round(double precision, integer)does not exist