Re: [HACKERS] bug in numeric_power() function

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] bug in numeric_power() function
Дата
Msg-id 200805072341.m47NfrJ13270@momjian.us
обсуждение исходный текст
Ответ на Re: [HACKERS] bug in numeric_power() function  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Alvaro Herrera wrote:
> Bruce Momjian wrote:
>
> > Ah, got it, and I updated the patch to remove the commment about
> > "discrete".
>
> The page also says that 0^x is undefined when x is negative, not sure
> about that one but I don't see it in your patch.

That one was already handled:

    test=> select 0 ^ -1;
    ERROR:  invalid argument for power function
    test=> select 0 ^ -1.0;
    ERROR:  invalid argument for power function

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] bug in numeric_power() function
Следующее
От: Bernd Helmle
Дата:
Сообщение: Re: Updatable views