Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tableAlias and qualified column resolving #625

Open
hfhbd opened this issue Apr 15, 2024 · 0 comments
Open

Improve tableAlias and qualified column resolving #625

hfhbd opened this issue Apr 15, 2024 · 0 comments

Comments

@hfhbd
Copy link
Collaborator

hfhbd commented Apr 15, 2024

CREATE TABLE A (a_id INTEGER PRIMARY KEY, name TEXT);
CREATE TABLE B (a_id INTEGER UNIQUE REFERENCES A(a_id), count INTEGER);

SELECT B.a_id
FROM A
JOIN B b ON b.a_id = A.a_id;

Resolving the alias is hard coded in InsertStmtMixin and not reusable for JoinClauseMixin or dialect authors.

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

No branches or pull requests

1 participant