Re: Bug with int2

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Bug with int2
Дата
Msg-id CAM3SWZSF48rewhssD4h+wUDvoA32Yz275S5_HY9ysjmLOHNm_w@mail.gmail.com
обсуждение исходный текст
Ответ на Bug with int2  (Feng Tian <ftian@vitessedata.com>)
Ответы Re: Bug with int2  (Feng Tian <ftian@vitessedata.com>)
Список pgsql-hackers
On Tue, Feb 16, 2016 at 7:27 PM, Feng Tian <ftian@vitessedata.com> wrote:
> I run into the following.   Seems this is a bug for -32768, which should be
> a valid smallint value.

This isn't a bug. You see the error only due to operator precedence:

postgres=# select (-32768)::int2; int2
─────────-32,768
(1 row)

--
Peter Geoghegan



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Bug with int2
Следующее
От: Tim Abbott
Дата:
Сообщение: Re: tsearch_extras extension