Numeric modulo operator is incorrect.

Поиск
Список
Период
Сортировка
От Ken-ichi Yamasaki
Тема Numeric modulo operator is incorrect.
Дата
Msg-id uu241qcjz.wl@SOHO1.kyama$palette.pbs.plala.or.jp
обсуждение исходный текст
Ответы Re: Numeric modulo operator is incorrect.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Dear sir,

I build PostgreSQL 7.0.3 with jumbo-20010318.patch.gz on Vine Linux2.1.5.

Following result are incorrect. Am I under an illusion?

test=# select '34666624082'::numeric % '34666671'::numeric;
 ?column?
----------
   -46918
(1 row)

test=# select '34666624082'::numeric - '34666671'::numeric
    * trunc('34666624082'::numeric / '34666671'::numeric);
 ?column?
----------
 34619753
(1 row)

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

Предыдущее
От: Ken-ichi Yamasaki / 山崎賢一
Дата:
Сообщение: Numeric modulo operator is incorrect.
Следующее
От: "Jay Guerette"
Дата:
Сообщение: Re: PostgreSQL 7.0.2 Date Miscalculation