bug in numeric_power() function

Поиск
Список
Период
Сортировка
От Richard Wang
Тема bug in numeric_power() function
Дата
Msg-id fr7flt$2j04$1@news.hub.org
обсуждение исходный текст
Ответы Re: bug in numeric_power() function  ("Dann Corbit" <DCorbit@connx.com>)
Re: bug in numeric_power() function  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I expected 0 ^ 123.3 to be 0, but it reported error as follows

postgres=# select 0 ^ 123.3;
ERROR:  cannot take logarithm of zero

I find that there is a bug in numeric_power() function
the function caculates a ^ b based on the algorithm e ^ (lna * b)
as you see, ln0 is not valid 




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

Предыдущее
От: longlong
Дата:
Сообщение: Fwd: COPY issue(gsoc project)
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: bug in numeric_power() function