Simplest way to convert a query to array of structs?

Gosh it would be elegant if this worked, but the closure function doesn’t have access to the global scope like a normal closure does :confused:

an_array = [];


What version of Lucee are you using? That approach does work.

You can run an example here:

You could also return an array of structs from the original query execution. See:

Doh. Brain fart on my part. Thanks for the sanity check :wink: