Re: [HACKERS] bug in numeric_power() function - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] bug in numeric_power() function
Date
Msg-id 200805072341.m47NfrJ13270@momjian.us
Whole thread Raw
In response to Re: [HACKERS] bug in numeric_power() function  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] bug in numeric_power() function
Next
From: Bernd Helmle
Date:
Subject: Re: Updatable views