Sorry, version is 8.2.4
2008/1/21, Ottó Havasvölgyi <havasvolgyi(dot)otto(at)gmail(dot)com>:
> 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
>