Casting on the limit

Поиск
Список
Период
Сортировка
От Ottó Havasvölgyi
Тема Casting on the limit
Дата
Msg-id 34608c0c0801210004x29c8b037j5a6cf48ed193f4c6@mail.gmail.com
обсуждение исходный текст
Ответы Re: Casting on the limit  ("Ottó Havasvölgyi" <havasvolgyi.otto@gmail.com>)
Re: Casting on the limit  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
Список pgsql-bugs
Hi,

In 8.2.5:

This does not work (out of range):
select -32768::int2

But this works:
select cast(-32768 as int2);

What is the difference between the two syntax in the background? I
always thought they are the same.

Best regards,
Otto


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql's \h listing of commands doesn't look nice anymore
Следующее
От: "Ottó Havasvölgyi"
Дата:
Сообщение: Re: Casting on the limit