Skip to content

Preserve PostgreSQL CTE bindings in SQLite queries - #139

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
fix/nonrecursive-cte-binding
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
fix/nonrecursive-cte-binding

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

SQLite exposes every CTE name to every sibling body. A non-recursive PostgreSQL WITH can bind a reference to a stored table or an outer CTE, so emitting the same names can change the query's rows or create a circular-reference error.

Preserve those source bindings through translation and connection replay, including nested scopes and schema-qualified storage reads.

@LucaCappelletti94 LucaCappelletti94 added bug Something isn't working rust Pull requests that update rust code labels Oct 22, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant