Casting on the limit

Поиск
Список
Период
Сортировка
От Ottó Havasvölgyi
Тема Casting on the limit
Дата
Msg-id 34608c0c0801210004x29c8b037j5a6cf48ed193f4c6@mail.gmail.com
обсуждение исходный текст
Ответы Re: Casting on the limit
Re: Casting on the limit
Список 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 по дате отправления: