I have find a T-SQL statement failing to make a string NULL, if it's empty string. It's like:
SELECT NULLIF(N'ធ្វើឱ្យ', '') -- NULL
According to google translator the word means "make" on Khmer language. If I try:
SELECT IIF(N'ធ្វើឱ្យ' = '', 1, 0) -- 1
So, the engine says this string is empty.
I am not sure if this is a support language issue, as here I have:
or some type data type precedence casting as we have two strings. It's strange how then engine is not able to understand the string is not empty?
After all the SELECT LEN(N'ធ្វើឱ្យ')
gives me seven, just wondering what's the exact reason.