Created
July 22, 2021 17:56
-
-
Save trycf/0bb497b1df639502a6cd0a41945ed4aa 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> | |
qryEmpty = queryNew( 'col', 'Integer' ) | |
qryPopulated = queryNew( 'col', 'Integer', [[2]] ) | |
writedump( qryEmpty ) | |
writedump( qryPopulated ) | |
qoq = queryExecute( | |
'SELECT sum( col ) FROM qryEmpty', | |
[], | |
{ dbType = 'query' } | |
) | |
writedump( qoq ) | |
qoq2 = queryExecute( | |
'SELECT sum( col ) FROM qryPopulated WHERE 1=2', | |
[], | |
{ dbType = 'query' } | |
) | |
writedump( qoq2 ) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment