But 8.2.6 works the same. I have just upgraded. 2008/1/21, Ottó Havasvölgyi <[EMAIL PROTECTED]>: > Sorry, version is 8.2.4 > > 2008/1/21, Ottó Havasvölgyi <[EMAIL PROTECTED]>: > > 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 > > >
---------------------------(end of broadcast)--------------------------- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate