Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/cb6415f57016231662dd4396748c7918 to your computer and use it in GitHub Desktop.
Save trycf/cb6415f57016231662dd4396748c7918 to your computer and use it in GitHub Desktop.
TryCF Gist
<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