Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/e4bf19f156979a477e946a1da1e82848 to your computer and use it in GitHub Desktop.
Save trycf/e4bf19f156979a477e946a1da1e82848 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
// create the query with safe col names
qry = QueryNew("test_test,colTwo");
queryaddrow( qry );
querysetcell( qry, "test_test", 123 );
querysetcell( qry, "colTwo", "abc" );
qry.setColumnNames(["test test","colTwo"]);
WriteDump(qry);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment