Created
January 5, 2022 11:33
-
-
Save trycf/899dd2ebdca270ad588811671758d61d 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> | |
employees = queryNew( 'name,age,email', 'varchar,integer,varchar'); | |
try { | |
actual = QueryExecute( | |
sql = "SELECT name, age, name from employees ORDER BY age, email", | |
options = { dbtype: 'query' } | |
); // Reading twice the column (name) in SELECT statement and order by column which is not in SELECT statement (email) | |
writedump( actual ) | |
} | |
catch (any e) { | |
writedump( e.message ); | |
writedump( e.type ); | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment