Quantcast
Channel: Lucee Dev - Latest topics
Viewing all articles
Browse latest Browse all 419

Different value about null from local and query scope

$
0
0

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).

image

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

Read full topic


Viewing all articles
Browse latest Browse all 419

Trending Articles