Created
December 8, 2023 09:48
-
-
Save trycf/cb6415f57016231662dd4396748c7918 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
cfapplication( action="update", nullSupport=true); | |
var thisNull = nullValue(); | |
dump( var=thisNull ?: 'is_null', label="from local" ); | |
var q = queryNew( "nullField", "varchar", [ [ nullValue() ] ] ); | |
dump( var=q.nullField ?: 'is_null', label="from db" ); | |
dump( var=IsNull(q.nullField), label="Is null" ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment