Re: [HACKERS] bug in numeric_power() function

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Richard Wang <ruc_wang(at)hotmail(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] bug in numeric_power() function
Date: 2008-05-07 23:41:53
Message-ID: 200805072341.m47NfrJ13270@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers 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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2008-05-07 23:50:13 Re: Remove hacks for old bad qsort() implementations?
Previous Message Alvaro Herrera 2008-05-07 23:32:29 Re: [HACKERS] bug in numeric_power() function

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2008-05-08 02:24:13 Re: postgresql in FreeBSD jails: proposal
Previous Message Alvaro Herrera 2008-05-07 23:32:29 Re: [HACKERS] bug in numeric_power() function