Skip to content

Conversation

@PThorpe92
Copy link
Collaborator

closes #3620

SQLite displays column names that are otherwise un-named (or would contain whatever internal identifier otherwise), as columnx where x is the index into the result columns.
image

Turso previously did this, and just used the internal subquery identifier:
image

this PR swaps out the internal ident:
image

and prevents a user from explicitly either AS or Elided alias'ing a table or selecting identifier.* using the internal subquery prefix, preventing issues like the one referenced in #3620

@PThorpe92 PThorpe92 changed the title Subquery names core/translate: prevent aliasing internal subquery identifiers Oct 17, 2025
@nyrkio
Copy link

nyrkio bot commented Oct 17, 2025

Nyrkiö Report for Commit: ed1b6c9

No performance changes detected.

Remember that Nyrkiö results become more precise when more commits are merged. So please check back in a few days.

Nyrkiö

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal subquery table names should not be visible to the user

2 participants