Re: Casting on the limit - Mailing list pgsql-bugs

From Ottó Havasvölgyi
Subject Re: Casting on the limit
Date
Msg-id 34608c0c0801210006t6dcd3154j61a98f8780659f7f@mail.gmail.com
Whole thread Raw
In response to Casting on the limit  ("Ottó Havasvölgyi" <havasvolgyi.otto@gmail.com>)
Responses Re: Casting on the limit
List pgsql-bugs
Sorry, version is 8.2.4

2008/1/21, Ottó Havasvölgyi <havasvolgyi.otto@gmail.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
>


pgsql-bugs by date:

Previous
From: "Ottó Havasvölgyi"
Date:
Subject: Casting on the limit
Next
From: "Ottó Havasvölgyi"
Date:
Subject: Re: Casting on the limit