I was testing the isNull
function, when I found out that if you concatenate NULL plus string, like this for example:
SELECT isNull(NULL+'123456','I am a flag')
The result is neither '1234' or 'I am a flag', it is 'I am a' instead. The length of the result depends on the length of the concatenated string.
I would like to know the cause for this.