Hi all.
This is a bug?
Seems that Lucee evaluates a null value differently depending on whether it is in “local” or “query” scope.
I noticed this with a query in Postgres.
var thisNull = nullValue();
dump( var=thisNull ?: 'is_null', label="from local" );
This return ‘is_null’. Correct.
var q = queryNew( "nullField", "varchar", [ [ nullValue() ] ] );
dump( var=q.nullField ?: 'is_null', label="from db" );
This return ‘’.
Should return ‘is_null’ too. No?
(I try with several datatype, but nothing change).
IsNull( q.nullField )
This is false.
But shouldn’t it be true?
What do you think?
(I’m using Lucee 5)
6 posts - 2 participants