Closed vabenil closed 1 year ago
in D null == "" returns true,
But str is null
and str == ""
are two different things.
Though yes, I want to change this anyway - i want to get away from Variant and string - but you should be able to detect it with the is null
test.
Oh, I didn't know about str is null
I only tried "str == null". It should be okay then. I will close this then.
Currently after a query is done the values of the fields of each row are converted to string. This however doesn't take into consideration the null type. in D
null == ""
returns true, so if you have a string field it's impossible to differentiate if said field isnull
or just empty in the database. Which is an important differentiation to make.