Re: Trigger Function and backup

Поиск
Список
Период
Сортировка
От Havasvölgyi Ottó
Тема Re: Trigger Function and backup
Дата
Msg-id 34608c0c0906150250g31ab5fbas659c8f5f45091d2c@mail.gmail.com
обсуждение исходный текст
Ответ на Trigger Function and backup  (Nishkarsh <nishkarsh_k@rediffmail.com>)
Ответы Re: Trigger Function and backup  (Vick Khera <vivek@khera.org>)
Список pgsql-general
Hi,

I have found the following strangeness on Windows:

create table round_test (id int primary key, value double precision);
insert into round_test(id, value) values(1, 1.5);
insert into round_test(id, value) values(2, -1.5);
insert into round_test(id, value) values(3, 3.5);
select round(value) from round_test;

psql 8.2.13 returns

2
-2
4

But psql 8.3.3 returns

1
-1
3


What does cause this?
How can I avoid this incompatibility or perhaps bug?

Thanks,
Otto

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

Предыдущее
От: Nishkarsh
Дата:
Сообщение: Trigger Function and backup
Следующее
От: Havasvölgyi Ottó
Дата:
Сообщение: Rounding incompatibility