Query of Queries UNION returns incorrect results with cfqueryparam

Description

Query of Queries fails when UNIONing rows that have cfqueryparams in them.

The result includes one row with the letter "a" and the number "1", and one row with the letter "b" and a blank number. Both numbers should be "1".

Run it at: https://trycf.com/gist/cd30ab29a6468471b5f9928d82aef9bb/lucee5

Workaround: Don't use cfqueryparam. If I just put in "1" as a literal value, the result is as expected.

P.S. This will block the migration of my large application from ACF to Lucee.

Environment

I'm actually running Lucee 5.3.1.87-RC, but it wasn't in the list of versions.
Ubuntu 16.04

Assignee

Michael Offner

Reporter

Leon Miller-Out

Priority

Blocker

Labels

Fix versions

Time tracking

0m

Sprint

None
Configure