Title: pg_enum system catalog not available to sqlc · Issue #1170 · sqlc-dev/sqlc · GitHub
Open Graph Title: pg_enum system catalog not available to sqlc · Issue #1170 · sqlc-dev/sqlc
X Title: pg_enum system catalog not available to sqlc · Issue #1170 · sqlc-dev/sqlc
Description: Version 1.9.0 What happened? Expected sqlc generate to create a function to be used in Go code. This is an alternative attempt to solve the issue found here: #1126. Relevant log output sql/queries/lot_attributes.sql:133:1: relation "pg_e...
Open Graph Description: Version 1.9.0 What happened? Expected sqlc generate to create a function to be used in Go code. This is an alternative attempt to solve the issue found here: #1126. Relevant log output sql/queries/...
X Description: Version 1.9.0 What happened? Expected sqlc generate to create a function to be used in Go code. This is an alternative attempt to solve the issue found here: #1126. Relevant log output sql/queries/...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1170
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pg_enum system catalog not available to sqlc","articleBody":"### Version\n\n1.9.0\n\n### What happened?\n\nExpected `sqlc generate` to create a function to be used in Go code. This is an alternative attempt to solve the issue found here: https://github.com/kyleconroy/sqlc/issues/1126. \n\n### Relevant log output\n\n```shell\nsql/queries/lot_attributes.sql:133:1: relation \"pg_enum\" does not exist\n```\n\n\n### Database schema\n\n```sql\n-- migrate:up\r\nCREATE TYPE lot_destination_status AS ENUM ('origin', 'in_transit', 'spot')\n```\n\n\n### SQL queries\n\n```sql\n-- name: LotDestinationStatus :many\r\nSELECT\r\n enum.enumlabel AS value\r\nFROM\r\n pg_enum AS enum\r\n JOIN pg_type AS type ON (type.oid = enum.enumtypid)\r\nWHERE\r\n type.typname = 'lot_destination_status'\r\nGROUP BY\r\n enum.enumlabel,\r\n type.typname;\n```\n\n\n### Configuration\n\n```yaml\nversion: \"1\"\r\npackages:\r\n- name: \"store\"\r\n path: \"store\"\r\n queries: \"./sql/queries\"\r\n schema: \"./sql/migrations\"\r\n engine: \"postgresql\"\r\n emit_json_tags: true\r\n emit_prepared_queries: true\r\n emit_interface: false\r\n emit_exact_table_names: false\r\n emit_empty_slices: false\n```\n\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\nPostgreSQL\n\n### What type of code are you generating?\n\nGo","author":{"url":"https://github.com/rhodee","@type":"Person","name":"rhodee"},"datePublished":"2021-09-09T13:00:46Z","url":"https://github.com/sqlc-dev/sqlc/issues/1170"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:1e6a9392-0a8d-5ee9-ffbc-2d2591de45f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86B6:4BB79:24D9C27:2F0EC25:6B0192F9 |
| html-safe-nonce | d5c8ef4faf50519ae1be2310ebae31c114566dbb418fc401e96b011b78370ac1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkI2OjRCQjc5OjI0RDlDMjc6MkYwRUMyNTo2QjAxOTJGOSIsInZpc2l0b3JfaWQiOiIxODk1NzI2OTI2MTk1MTY3OTkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1ee17c795b95c56c954d8b22e667755d1b39bea1b1ee171e11be767d743b6424 |
| hovercard-subject-tag | issue:992195848 |
| 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/1170/issue_layout |
| twitter:image | https://opengraph.githubassets.com/45a4d45126ac17ffd67cc011ec9df66e3a7b8f20b1fcda822d564c565c3830a5/sqlc-dev/sqlc/issues/1170 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/45a4d45126ac17ffd67cc011ec9df66e3a7b8f20b1fcda822d564c565c3830a5/sqlc-dev/sqlc/issues/1170 |
| og:image:alt | Version 1.9.0 What happened? Expected sqlc generate to create a function to be used in Go code. This is an alternative attempt to solve the issue found here: #1126. Relevant log output sql/queries/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhodee |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width