Title: Sqlc could not support table alias (error: table alias "t1" does not exist) · Issue #2400 · sqlc-dev/sqlc · GitHub
Open Graph Title: Sqlc could not support table alias (error: table alias "t1" does not exist) · Issue #2400 · sqlc-dev/sqlc
X Title: Sqlc could not support table alias (error: table alias "t1" does not exist) · Issue #2400 · sqlc-dev/sqlc
Description: 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 CREATE TABLE authors ( id BIGINT PRIMAR...
Open Graph Description: 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...
X Description: 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 resp...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/2400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sqlc could not support table alias (error: table alias \"t1\" does not exist)","articleBody":"### Version\n\n1.18.0\n\n### What happened?\n\nSqlc could not support table alias, the sql example is in below.\r\n\r\nThe error message is \"table alias \"t1\" does not exist\"\n\n### Relevant log output\n\n_No response_\n\n### Database schema\n\n```sql\nCREATE TABLE authors (\r\n id BIGINT PRIMARY KEY AUTO_INCREMENT,\r\n name text NOT NULL,\r\n bio text\r\n);\n```\n\n\n### SQL queries\n\n```sql\n/* name: ListAuthors2 :many */\r\nselect * from (SELECT * FROM authors) as t1 where t1.id \u003e ?;\n```\n\n\n### Configuration\n\n_No response_\n\n### Playground URL\n\n_No response_\n\n### What operating system are you using?\n\n_No response_\n\n### What database engines are you using?\n\n_No response_\n\n### What type of code are you generating?\n\n_No response_","author":{"url":"https://github.com/ankisme","@type":"Person","name":"ankisme"},"datePublished":"2023-07-04T09:58:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2400/sqlc/issues/2400"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:66e684e1-d7ec-8c21-1574-df4dff3e4d7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C43E:2616D7:BD58B8:C0DC19:6A512878 |
| html-safe-nonce | 51cf4c86bf538554af854c331071420a0cb25560a6863ae4c8f5533ce43950ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDNFOjI2MTZENzpCRDU4Qjg6QzBEQzE5OjZBNTEyODc4IiwidmlzaXRvcl9pZCI6IjExNzQ0MzA4MDk5ODMxMDEwNDgiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 4ea09a60740ac814967f5ba9d318eb27eba1f2a67bdf84284aaaaa5d2d70d6d1 |
| hovercard-subject-tag | issue:1787596012 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/2400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84ec44ca0d20899bde2f9d9e4b4a4f86097d739723c75aaa9842eec69e33adac/sqlc-dev/sqlc/issues/2400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84ec44ca0d20899bde2f9d9e4b4a4f86097d739723c75aaa9842eec69e33adac/sqlc-dev/sqlc/issues/2400 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ankisme |
| hostname | github.com |
| expected-hostname | github.com |
| None | a74ad1f4971203e7676c31c6c5233aa0b6995813088e47ba7b62c270d4b1ebfc |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | a4218abefb3ba97edd71b38e508f263fc8c0d1c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width