Title: Issue · GitHub
Open Graph Title: Issue · sqlc-dev/sqlc
X Title: Issue · sqlc-dev/sqlc
Description: Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub.
Open Graph Description: Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub.
X Description: Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub.
Opengraph URL: https://github.com/sqlc-dev/sqlc
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Table alias not working","articleBody":"### Version\n\n1.11.0\n\n### What happened?\n\nIn v1.11.0, when I use an alias for a subquery table, sqlc will report an error for table alias does not exist, but when I change version to v1.10.0 everything is fine\n\n### Relevant log output\n\n```shell\ntable alias \"subtable\" does not exist\n```\n\n\n### Database schema\n\n_No response_\n\n### SQL queries\n\n```sql\n`\r\nselect a.name\r\nfrom (a subquery) as a\r\nwhere a.id=?\r\n\r\n`\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\nmacOS\n\n### What database engines are you using?\n\nMySQL\n\n### What type of code are you generating?\n\nGo","author":{"url":"https://github.com/FreshPer","@type":"Person","name":"FreshPer"},"datePublished":"2022-01-21T06:28:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/1385/sqlc/issues/1385"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:f8e2456d-1199-1e3e-c12e-eef2a271604e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8788:620C2:26D718D:33C0D8D:6A52174C |
| html-safe-nonce | 0fcbd70a69b13beb26e8701d32b6591385a8e40d9ba842884d2a3e38ffff6fec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Nzg4OjYyMEMyOjI2RDcxOEQ6MzNDMEQ4RDo2QTUyMTc0QyIsInZpc2l0b3JfaWQiOiIzMDIxOTUyNTk3NzA1NzU4NTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 88e9e2db7458086b4815bc83cc16a301a958ba72f9c4f47196cc90b6d8bb0cf9 |
| hovercard-subject-tag | repository:193160679 |
| 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/sqlc-dev/sqlc/issues/1385 |
| twitter:image | https://opengraph.githubassets.com/b981288ef9090a8fb22e65239842ba2a6d7afc92b1a8e8278b7d94257220016b/sqlc-dev/sqlc |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b981288ef9090a8fb22e65239842ba2a6d7afc92b1a8e8278b7d94257220016b/sqlc-dev/sqlc |
| og:image:alt | Generate type-safe code from SQL. Contribute to sqlc-dev/sqlc development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width