BUG #1762: Integer multiplication error

Поиск
Список
Период
Сортировка
От Milos Babic
Тема BUG #1762: Integer multiplication error
Дата
Msg-id 20050709092516.B96D4F0CBD@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1762: Integer multiplication error
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1762
Logged by:          Milos Babic
Email address:      milos.babic@gmail.com
PostgreSQL version: 8.0
Operating system:   FreeBSD
Description:        Integer multiplication error
Details:

When I try from psql to select:

select 1024*1024*4500;

it responses with:
error integer out of range

is it known bug or what is going on?

almost, even worst thing happens on postgresql version 7.4.2 on SuSe Linux
9.1
when I try
select 1024*1024*4500;

it responses with
423624704
!!!

it also happens when I try to insert 1024*1024*4500 into int8 field in
database!

Best regards
milos

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