INTEGER range ("-2147483648" is not accepted.)

Поиск
Список
Период
Сортировка
От Satoshi Nagayasu
Тема INTEGER range ("-2147483648" is not accepted.)
Дата
Msg-id 4C207403.3080103@gmail.com
обсуждение исходный текст
Ответы Re: INTEGER range ("-2147483648" is not accepted.)  (Thom Brown <thombrown@gmail.com>)
Re: INTEGER range ("-2147483648" is not accepted.)  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-docs
Hi all,

I've found a bit strange thing on the INTEGER range in the official manual.

http://www.postgresql.org/docs/8.4/interactive/datatype-numeric.html

According to the official manual, the INTEGER range is "-2147483648 to +2147483647".
However, my example in below shows that "-2147483648" is not accepted.

Is this correct? Any suggestions?

Regards,

---------------------------------------------------------------------
template1=# SELECT version();
                                                  version
------------------------------------------------------------------------------------------------------------
 PostgreSQL 8.4.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42), 32-bit
(1 row)

template1=# SELECT -2147483647::integer;
  ?column?
-------------
 -2147483647
(1 row)

template1=# SELECT -2147483648::integer;
ERROR:  integer out of range
template1=# SELECT +2147483648::integer;
ERROR:  integer out of range
template1=# SELECT +2147483647::integer;
  ?column?
------------
 2147483647
(1 row)

template1=#
---------------------------------------------------------------------

--
NAGAYASU Satoshi <satoshi.nagayasu@gmail.com>

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: hot standby documentation
Следующее
От: Thom Brown
Дата:
Сообщение: Re: INTEGER range ("-2147483648" is not accepted.)