Is there a standard way for how the following statements evaluate, or is it implementation-defined?
SELECT CAST(100000 AS int16); # integer overflow
SELECT CAST("hello" AS VARCHAR(2)); # string overflow (truncation?)
For example, should the number get the max 16-bit value? Raise an error (and if so, why?) Should the string just chop off the first two chars? etc.