Title: No longer able to retrieve enum array in v1.9.0 using pgx · Issue #1126 · sqlc-dev/sqlc · GitHub
Open Graph Title: No longer able to retrieve enum array in v1.9.0 using pgx · Issue #1126 · sqlc-dev/sqlc
X Title: No longer able to retrieve enum array in v1.9.0 using pgx · Issue #1126 · sqlc-dev/sqlc
Description: Prior to 1.9.0 sqlc was able to return an ([]interface{}, error) for the following kind of query: My code sets up the following query: -- name: LotAltitude :many SELECT unnest(enum_range(null::lot_altitude_designation)) I get the followi...
Open Graph Description: Prior to 1.9.0 sqlc was able to return an ([]interface{}, error) for the following kind of query: My code sets up the following query: -- name: LotAltitude :many SELECT unnest(enum_range(null::lot_...
X Description: Prior to 1.9.0 sqlc was able to return an ([]interface{}, error) for the following kind of query: My code sets up the following query: -- name: LotAltitude :many SELECT unnest(enum_range(null::lot_...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/1126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No longer able to retrieve enum array in v1.9.0 using pgx","articleBody":"Prior to `1.9.0` sqlc was able to return an `([]interface{}, error)` for the following kind of query:\r\n\r\nMy code sets up the following query:\r\n\r\n```sql\r\n-- name: LotAltitude :many\r\nSELECT unnest(enum_range(null::lot_altitude_designation))\r\n```\r\n\r\nI get the following error:\r\n\r\n`can't scan into dest[0]: unknown oid 20450 cannot be scanned into *interface {}`\r\n\r\nSo I did some research and found the `RegisterDataType` [method](https://pkg.go.dev/github.com/jackc/pgtype#ConnInfo.RegisterDataType). This however has raised more questions of how to provide the pointer value to satisfy the `pgtype.Value`.\r\n\r\nWhen I revert to `1.6.0` the issue is no longer present. Is there any guidance you can provide for getting unblocked? \r\n\r\nAwesome work team and I appreciate you helping me level up my pgx knowledge - ","author":{"url":"https://github.com/rhodee","@type":"Person","name":"rhodee"},"datePublished":"2021-08-15T16:00:48Z","url":"https://github.com/sqlc-dev/sqlc/issues/1126"}
| 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:626488ca-5387-28e6-4a91-79c317d44a43 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4EC:B1B84:1C91B7D:244958A:6B0196A9 |
| html-safe-nonce | 1a43bdf9a929cb5218401aa3c366fd5df363caa56394f89dac5726e6a6d6fc7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEVDOkIxQjg0OjFDOTFCN0Q6MjQ0OTU4QTo2QjAxOTZBOSIsInZpc2l0b3JfaWQiOiI3MjQ2OTUyMzEyMzY5OTQ0MjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ab2fcf0a2834075c63980ef6d0fa76c06fa2a0edb0b10bf2e566da68ab2b4981 |
| hovercard-subject-tag | issue:971167557 |
| 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/1126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03773db25bb6fc136fe28f0c8036a8b0a738c7a3b1230905ee56396fe5d01037/sqlc-dev/sqlc/issues/1126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03773db25bb6fc136fe28f0c8036a8b0a738c7a3b1230905ee56396fe5d01037/sqlc-dev/sqlc/issues/1126 |
| og:image:alt | Prior to 1.9.0 sqlc was able to return an ([]interface{}, error) for the following kind of query: My code sets up the following query: -- name: LotAltitude :many SELECT unnest(enum_range(null::lot_... |
| 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