Incompatible trig error handling

Поиск
Список
Период
Сортировка
От John Gorman
Тема Incompatible trig error handling
Дата
Msg-id CALkS6B-eKw_wrd3CLKM2noS-pqCDJ=Uxznkq8oEpW3AZLBFh9g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Incompatible trig error handling  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Two of the trigonometry functions have differing error condition behavior between Linux and OSX. The Linux behavior follows the standard set by the other trig functions.

On Linux:

SELECT asin(2);
ERROR:  input is out of range
 
SELECT acos(2);
ERROR:  input is out of range

On OSX:

SELECT asin(2);
 asin
------
  NaN
(1 row)
 
SELECT asin(2);
 asin
------
  NaN
(1 row)

The attached patch brings OSX into line with the expected behaviour and the additional regression tests verify this.

Is this worth fixing and if so what is the next step?

Best, John
Вложения

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

Предыдущее
От: Petr Jelinek
Дата:
Сообщение: Re: mogrify and indent features for jsonb
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: INSERT ... ON CONFLICT syntax issues