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

From Ottó Havasvölgyi
Subject Re: Casting on the limit
Date
Msg-id 34608c0c0801210013r18c98721me71199c87b97f604@mail.gmail.com
Whole thread Raw
In response to Re: Casting on the limit  ("Ottó Havasvölgyi" <havasvolgyi.otto@gmail.com>)
List pgsql-bugs
But 8.2.6 works the same. I have just upgraded.

2008/1/21, Ottó Havasvölgyi <havasvolgyi.otto@gmail.com>:
> 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: Re: Casting on the limit
Next
From: "Adriaan van Os"
Date:
Subject: BUG #3891: Multiple UPDATE doesn't handle UNIQUE constraint correctly