Skip to content

fix: preserve selections when adding an empty column list - #334

Merged
elpete merged 1 commit into
nextfrom
fix/empty-raw-select
Sep 18, 2026
Merged

elpete merged 1 commit into
nextfrom
fix/empty-raw-select

Conversation

@elpete

@elpete elpete commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Calling selectRaw([]) or addSelect([]) on a new builder removed the default * and generated invalid SQL (SELECT FROM ...). This surfaced in AP API BI reports whose optional column configuration is empty.

Treat an empty normalized selection as a no-op. Existing columns and select bindings remain intact. Regression tests reproduce the invalid SQL before the fix and cover existing bound selections.

Validation: Lucee 6 query suite passed 2,446 tests, with 9 existing skips; formatting and diff checks passed.

@elpete
elpete changed the base branch from main to next September 18, 2026 21:00
@elpete
elpete merged commit 945ba90 into next Sep 18, 2026
35 checks passed
@elpete
elpete deleted the fix/empty-raw-select branch September 18, 2026 21: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