Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created October 11, 2013 20:01
Show Gist options
  • Save adamcameron/6941110 to your computer and use it in GitHub Desktop.
Save adamcameron/6941110 to your computer and use it in GitHub Desktop.
Cross-platform QoQ.
<cfscript>
numbers = queryNew(
"id,en,ma",
"integer,varchar,varchar",
[
[1, "one", "tahi"],
[2, "two", "rua"],
[3, "three", "toru"],
[4, "four", "wha"]
]);
one = new Query(dbtype="query", numbers=numbers, SQL="
SELECT *
FROM numbers
WHERE id = 1
").execute().getResult();
writeDump(var=variables);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment