Skip to content

Conversation

@freshtonic
Copy link
Contributor

Resolutions of CTE tables would only succeed from the main statement of a WITH but not sub-statements of that statement.

The fix was to not create parentless scopes on entry to Statement nodes - instead create a new scope pointing to the parent scope.

Acknowledgment

By submitting this pull request, I confirm that CipherStash can use, modify, copy, and redistribute this contribution, under the terms of CipherStash's choice.

Resolutions of CTE tables would only succeed from the main statement of
a `WITH` but not sub-statements of that statement.

The fix was to not create parentless scopes on entry to Statement
nodes - instead create a new scope pointing to the parent scope.
Copy link
Contributor

@auxesis auxesis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @freshtonic.

@auxesis auxesis merged commit 9583da9 into main Jul 16, 2025
3 of 4 checks passed
@auxesis auxesis deleted the fix/cte-resolution-in-sub-statements branch July 16, 2025 02:48
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.

3 participants