-
Notifications
You must be signed in to change notification settings - Fork 813
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
Sqlc could not support table alias (error: table alias "t1" does not exist) #2400
Comments
ankisme
added
bug
Something isn't working
triage
New issues that hasn't been reviewed
labels
Jul 4, 2023
kyleconroy
added
📚 mysql
🔧 golang
and removed
triage
New issues that hasn't been reviewed
labels
Jul 6, 2023
Jille
added a commit
to Jille/sqlc
that referenced
this issue
Feb 27, 2024
issue sqlc-dev#2989, sqlc-dev#2400 and probably others
kyleconroy
pushed a commit
that referenced
this issue
Mar 28, 2024
* fix(resolve): fix resolving reference to CTEs Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix #3219 * feat(compiler): Support subqueries in the FROM clause issue #2989, #2400 and probably others --------- Co-authored-by: Simon Klee <[email protected]>
Jille
added a commit
to Jille/sqlc
that referenced
this issue
Apr 3, 2024
issue sqlc-dev#2989, sqlc-dev#2400 and probably others
kyleconroy
pushed a commit
that referenced
this issue
Apr 4, 2024
…#3310) * fix(resolve): fix resolving reference to CTEs Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix #3219 * feat(compiler): Support subqueries in the FROM clause issue #2989, #2400 and probably others * chore(endtoend): Bump version in cte_resolve_ref to 1.26.0 to appease CI --------- Co-authored-by: Simon Klee <[email protected]>
Jille
added a commit
to Jille/sqlc
that referenced
this issue
Apr 4, 2024
issue sqlc-dev#2989, sqlc-dev#2400 and probably others
Jille
added a commit
to Jille/sqlc
that referenced
this issue
Apr 4, 2024
issue sqlc-dev#2989, sqlc-dev#2400 and probably others
simonklee
pushed a commit
to simonklee/sqlc
that referenced
this issue
Apr 9, 2024
issue sqlc-dev#2989, sqlc-dev#2400 and probably others
simonklee
pushed a commit
to simonklee/sqlc
that referenced
this issue
Apr 9, 2024
issue sqlc-dev#2989, sqlc-dev#2400 and probably others
This was referenced May 15, 2024
lisitsky
pushed a commit
to lisitsky/sqlc
that referenced
this issue
Jun 21, 2024
* fix(resolve): fix resolving reference to CTEs Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix sqlc-dev#3219 * feat(compiler): Support subqueries in the FROM clause issue sqlc-dev#2989, sqlc-dev#2400 and probably others --------- Co-authored-by: Simon Klee <[email protected]>
lisitsky
pushed a commit
to lisitsky/sqlc
that referenced
this issue
Jun 21, 2024
…sqlc-dev#3310) * fix(resolve): fix resolving reference to CTEs Fixed resolving refs to CTEs by adding CTEs to the aliasMap and indexing its columns when resolving catalog references. Fix sqlc-dev#3219 * feat(compiler): Support subqueries in the FROM clause issue sqlc-dev#2989, sqlc-dev#2400 and probably others * chore(endtoend): Bump version in cte_resolve_ref to 1.26.0 to appease CI --------- Co-authored-by: Simon Klee <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.18.0
What happened?
Sqlc could not support table alias, the sql example is in below.
The error message is "table alias "t1" does not exist"
Relevant log output
No response
Database schema
SQL queries
Configuration
No response
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response
The text was updated successfully, but these errors were encountered: