Title: Column type `string` does not return error · Issue #1917 · sqlc-dev/sqlc · GitHub
Open Graph Title: Column type `string` does not return error · Issue #1917 · sqlc-dev/sqlc
X Title: Column type `string` does not return error · Issue #1917 · sqlc-dev/sqlc
Description: Version 1.15.0 What happened? When a create a table with a column type string, which is not a postgres datatype: create table test_table ( id string ); the sqlc code generator does not return any errors. It generates a field in Go with t...
Open Graph Description: Version 1.15.0 What happened? When a create a table with a column type string, which is not a postgres datatype: create table test_table ( id string ); the sqlc code generator does not return any e...
X Description: Version 1.15.0 What happened? When a create a table with a column type string, which is not a postgres datatype: create table test_table ( id string ); the sqlc code generator does not return any e...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1917
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Column type `string` does not return error","articleBody":"### Version\r\n\r\n1.15.0\r\n\r\n### What happened?\r\n\r\nWhen a create a table with a column type `string`, which is not a postgres datatype:\r\n\r\n```\r\ncreate table test_table (\r\n id string\r\n);\r\n```\r\n\r\nthe sqlc code generator **does not** return any errors. It generates a field in Go with type `string`.\r\n\r\nHowever, when the migration is applied, an error is returned since the datatype `string` does not exist in postgres.\r\n\r\n### Relevant log output\r\n\r\n_No response_\r\n\r\n### Database schema\r\n\r\n_No response_\r\n\r\n### SQL queries\r\n\r\n_No response_\r\n\r\n### Configuration\r\n\r\n_No response_\r\n\r\n### Playground URL\r\n\r\nhttps://play.sqlc.dev/p/377ff1e3c1bac823de845bd66dbffbee9ed4bb328e63f7c291297c6d256c7112\r\n\r\n### What operating system are you using?\r\n\r\n_No response_\r\n\r\n### What database engines are you using?\r\n\r\n_No response_\r\n\r\n### What type of code are you generating?\r\n\r\n_No response_","author":{"url":"https://github.com/mohdrasbi","@type":"Person","name":"mohdrasbi"},"datePublished":"2022-10-28T13:50:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1917/sqlc/issues/1917"}
| 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:cdc1f7ed-8c4f-40f1-c3fe-f403cdb23774 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9EAA:1F29:227880A:2ECD083:6A5056DB |
| html-safe-nonce | 6f0e763ca5706d802fad47b08c5b343eb385f6224afbfb909a5d19a71530d969 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUFBOjFGMjk6MjI3ODgwQToyRUNEMDgzOjZBNTA1NkRCIiwidmlzaXRvcl9pZCI6IjU3OTI1NDIyNDU1MTQxMzkzNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c21e4e039c1a35de733affb5fff9a3eb56a6bcd2c5b31fe708873b226aec2383 |
| hovercard-subject-tag | issue:1427294986 |
| 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/1917/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e9f1f9514f5b9c5eda7b1cbb905cddecf6b80bc811b7916a8254fdba5a6c218/sqlc-dev/sqlc/issues/1917 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e9f1f9514f5b9c5eda7b1cbb905cddecf6b80bc811b7916a8254fdba5a6c218/sqlc-dev/sqlc/issues/1917 |
| og:image:alt | Version 1.15.0 What happened? When a create a table with a column type string, which is not a postgres datatype: create table test_table ( id string ); the sqlc code generator does not return any e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mohdrasbi |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| 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 | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width