division by zero

Поиск
Список
Период
Сортировка
От Eric B.Ridge
Тема division by zero
Дата
Msg-id 6D514366-50CD-11D7-B70C-0003937E3354@tcdi.com
обсуждение исходный текст
Ответы Re: division by zero  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: division by zero  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I admit, I suck at math, but I really thought postgres would ERROR on
this:

foo=# select 1/0;
  ?column?
----------
         0
(1 row)

More surprising is that this does ERROR:
foo=# select 1/0.0;
ERROR:  division by zero on numeric

Is this a bug, or do I need to go back to high school algebra?  "Both"
is an acceptable answer.  :)

eric


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Successful regression testing???
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: pg_ctl -m fast failing?