Re: bug in numeric_power() function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bug in numeric_power() function
Date
Msg-id 12538.1205298992@sss.pgh.pa.us
Whole thread Raw
In response to bug in numeric_power() function  ("Richard Wang" <ruc_wang@hotmail.com>)
List pgsql-hackers
"Richard Wang" <ruc_wang@hotmail.com> writes:
> 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

Hmm, seems like the numeric and float8 power operators don't agree
about 0^0 either...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: bug in numeric_power() function
Next
From: James Mansion
Date:
Subject: Build problem with VS2008 Express Edition