Title: MySQL: integer types for int8 and int16 are missing and use int32 · Issue #1856 · sqlc-dev/sqlc · GitHub
Open Graph Title: MySQL: integer types for int8 and int16 are missing and use int32 · Issue #1856 · sqlc-dev/sqlc
X Title: MySQL: integer types for int8 and int16 are missing and use int32 · Issue #1856 · sqlc-dev/sqlc
Description: Version 1.15.0 What happened? For MySQL, the usage of SMALLINT and TINYINT (except TINYINT(1)) result in int32 while int16 and int8 respectively would be the correct choice. The PostgreSQL implementation does map correctly. Relevant log ...
Open Graph Description: Version 1.15.0 What happened? For MySQL, the usage of SMALLINT and TINYINT (except TINYINT(1)) result in int32 while int16 and int8 respectively would be the correct choice. The PostgreSQL implemen...
X Description: Version 1.15.0 What happened? For MySQL, the usage of SMALLINT and TINYINT (except TINYINT(1)) result in int32 while int16 and int8 respectively would be the correct choice. The PostgreSQL implemen...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1856
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MySQL: integer types for int8 and int16 are missing and use int32","articleBody":"### Version\n\n1.15.0\n\n### What happened?\n\nFor MySQL, the usage of SMALLINT and TINYINT (except TINYINT(1)) result in int32 while int16 and int8 respectively would be the correct choice.\r\nThe PostgreSQL implementation does map correctly.\n\n### Relevant log output\n\n_No response_\n\n### Database schema\n\n```sql\nCREATE TABLE authors (\r\n id INT UNSIGNED PRIMARY KEY,\r\n id_author SMALLINT NOT NULL,\r\n id_name BIGINT NOT NULL\r\n);\n```\n\n\n### SQL queries\n\n_No response_\n\n### Configuration\n\n```yaml\n{\r\n \"version\": \"1\",\r\n \"packages\": [\r\n {\r\n \"path\": \"db\",\r\n \"engine\": \"mysql\",\r\n \"schema\": \"query.sql\",\r\n \"queries\": \"query.sql\"\r\n }\r\n ]\r\n}\n```\n\n\n### Playground URL\n\nhttps://play.sqlc.dev/p/62380b5c7ae894a511e870a044c334871d577b9fec10a9f11fdd4c114e7ba3b1\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/Funzinator","@type":"Person","name":"Funzinator"},"datePublished":"2022-09-21T15:04:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1856/sqlc/issues/1856"}
| 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:de48e7df-6745-1470-675c-6908df3ad8de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 961A:1A8C4D:A35D26:DDED5F:6A5204D1 |
| html-safe-nonce | fea279e7d01b4e309fab9835f5f5d6cd6e6d58ab65a6a4bcf8c1c0a8cc110668 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjFBOjFBOEM0RDpBMzVEMjY6RERFRDVGOjZBNTIwNEQxIiwidmlzaXRvcl9pZCI6IjQ1MjU4NzUxMDMzNzI4MDUzMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 85229ee88bcdd9c90092370b35f12067b10bc53db269bd5022c43067547cc8b6 |
| hovercard-subject-tag | issue:1381084909 |
| 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/1856/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d170a0db4cd1117e00707fd81268fa55cd8a9f9a93c8f8486090f2de50bbbce3/sqlc-dev/sqlc/issues/1856 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d170a0db4cd1117e00707fd81268fa55cd8a9f9a93c8f8486090f2de50bbbce3/sqlc-dev/sqlc/issues/1856 |
| og:image:alt | Version 1.15.0 What happened? For MySQL, the usage of SMALLINT and TINYINT (except TINYINT(1)) result in int32 while int16 and int8 respectively would be the correct choice. The PostgreSQL implemen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Funzinator |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width