Title: Backticks are not supported · Issue #3684 · sqlc-dev/sqlc · GitHub
Open Graph Title: Backticks are not supported · Issue #3684 · sqlc-dev/sqlc
X Title: Backticks are not supported · Issue #3684 · sqlc-dev/sqlc
Description: Version 1.27.0 What happened? Problem: -- schema.sql CREATE TABLE `users` ( `name` text ); This doesn't work (): -- queries.sql -- name: ListUsers :many SELECT * FROM `users`; error generating code: source error: 35:52: expected ')', fou...
Open Graph Description: Version 1.27.0 What happened? Problem: -- schema.sql CREATE TABLE `users` ( `name` text ); This doesn't work (): -- queries.sql -- name: ListUsers :many SELECT * FROM `users`; error generating code...
X Description: Version 1.27.0 What happened? Problem: -- schema.sql CREATE TABLE `users` ( `name` text ); This doesn't work (): -- queries.sql -- name: ListUsers :many SELECT * FROM `users`; error generating ...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/3684
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Backticks are not supported","articleBody":"### Version\n\n1.27.0\n\n### What happened?\n\nProblem:\r\n\r\n```sql\r\n-- schema.sql\r\nCREATE TABLE `users` (\r\n `name` text\r\n);\r\n```\r\n\r\nThis doesn't work ():\r\n\r\n```sql\r\n-- queries.sql\r\n\r\n-- name: ListUsers :many\r\nSELECT * FROM `users`;\r\n```\r\n\r\n```\r\nerror generating code: source error: 35:52: expected ')', found `id` (and 1 more errors)\r\n```\r\n\r\nsqlc is generating go code with\r\n```\r\n`name`\r\n```\r\ninstead of just `name`.\n\n### Relevant log output\n\n_No response_\n\n### Database schema\n\n_No response_\n\n### SQL queries\n\n_No response_\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\nSQLite\n\n### What type of code are you generating?\n\nGo","author":{"url":"https://github.com/dector","@type":"Person","name":"dector"},"datePublished":"2024-10-31T23:41:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/3684/sqlc/issues/3684"}
| 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:4a22e919-636c-14bd-568a-cf1bafeac2db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA4E:69D3C:805602:AADB05:6A517E6B |
| html-safe-nonce | f38118f22bd94696d51162bdd494879e203277e6348e08a2810d15e795d8f110 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTRFOjY5RDNDOjgwNTYwMjpBQURCMDU6NkE1MTdFNkIiLCJ2aXNpdG9yX2lkIjoiMjQ0MTIzMDY2MjMxOTA0NjI1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fde6981e9c05bc2ad13bf0f27c5227fc2f56ee0a5fd94e61e59a39a2dd8ba3e6 |
| hovercard-subject-tag | issue:2628009038 |
| 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/3684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f41eb538ecdc531adddbd0d6e3c3207f634b66acfc585b345790c1b637779768/sqlc-dev/sqlc/issues/3684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f41eb538ecdc531adddbd0d6e3c3207f634b66acfc585b345790c1b637779768/sqlc-dev/sqlc/issues/3684 |
| og:image:alt | Version 1.27.0 What happened? Problem: -- schema.sql CREATE TABLE `users` ( `name` text ); This doesn't work (): -- queries.sql -- name: ListUsers :many SELECT * FROM `users`; error generating code... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dector |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | d01c62704ef24df49056c63892a149b775e1353d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width