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 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

Reply via email to