Skip to content

fix: accept retrievable builders as subqueries - #329

Merged
elpete merged 1 commit into
nextfrom
fix/quick-builder-subqueries
Sep 15, 2026
Merged

elpete merged 1 commit into
nextfrom
fix/quick-builder-subqueries

Conversation

@elpete

@elpete elpete commented Aug 22, 2026

Copy link
Copy Markdown
Collaborator

Closes coldbox-modules/quick#226.

Quick builders recognized through qb’s isBuilder contract can expose their underlying qb query through retrieveQuery(). Passing one to a plain qb whereIn() previously reached snapshotBuilder(), which required a concrete QueryBuilder and raised a cast error before SQL compilation.

This change unwraps retrievable builders before cloning the subquery, preserving qb’s normal query snapshot, binding, and CTE behavior. It adds a public whereIn() regression using a retrievable builder fixture.

The branch is based on current next. The PR diff contains only the QueryExecutor change and its two test files; the obsolete TestBox patch is absent.

Validation: focused Lucee 6 full-null test passed (1/1), git diff --check passed, and the full 17-job PR matrix passed on 8673a64.

@elpete
elpete force-pushed the fix/quick-builder-subqueries branch from 32e46b0 to 8673a64 Compare September 15, 2026 22:04
@elpete
elpete merged commit a5801db into next Sep 15, 2026
18 checks passed
@elpete
elpete deleted the fix/quick-builder-subqueries branch September 15, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant