Re: bug in numeric_power() function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Richard Wang" <ruc_wang(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: bug in numeric_power() function
Date: 2008-03-12 05:16:32
Message-ID: 12538.1205298992@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

"Richard Wang" <ruc_wang(at)hotmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message James Mansion 2008-03-12 06:11:54 Build problem with VS2008 Express Edition
Previous Message Dann Corbit 2008-03-12 05:05:07 Re: bug in numeric_power() function

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2008-03-12 08:16:27 Re: [NOVICE] encoding problems
Previous Message Dann Corbit 2008-03-12 05:05:07 Re: bug in numeric_power() function