Re: BUG #12885: The result of casting a double to an integer depends on the database version

Поиск
Список
Период
Сортировка
От Pedro Gimeno
Тема Re: BUG #12885: The result of casting a double to an integer depends on the database version
Дата
Msg-id 55121967.90308@personal.formauri.es
обсуждение исходный текст
Ответ на Re: BUG #12885: The result of casting a double to an integer depends on the database version  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-bugs
Michael Paquier wrote, On 2015-03-25 01:19:
> Hence I'd rather think that patching src/port is the way to go, with
> for example something like the patch attached.

There are some corner cases that that patch does not handle properly,
most notably doubles that would overflow an integer. I suggest the
attached implementation (it's not as a patch, though). I've included a
test suite. The function can deal with non-IEEE floats too, but some of
the tests assume IEEE doubles.


Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #12885: The result of casting a double to an integer depends on the database version
Следующее
От: kimthangatm@gmail.com
Дата:
Сообщение: BUG #12895: Error: systemctl command not found