René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:626488ca-5387-28e6-4a91-79c317d44a43
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC4EC:B1B84:1C91B7D:244958A:6B0196A9
html-safe-nonce1a43bdf9a929cb5218401aa3c366fd5df363caa56394f89dac5726e6a6d6fc7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEVDOkIxQjg0OjFDOTFCN0Q6MjQ0OTU4QTo2QjAxOTZBOSIsInZpc2l0b3JfaWQiOiI3MjQ2OTUyMzEyMzY5OTQ0MjMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacab2fcf0a2834075c63980ef6d0fa76c06fa2a0edb0b10bf2e566da68ab2b4981
hovercard-subject-tagissue:971167557
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/1126/issue_layout
twitter:imagehttps://opengraph.githubassets.com/03773db25bb6fc136fe28f0c8036a8b0a738c7a3b1230905ee56396fe5d01037/sqlc-dev/sqlc/issues/1126
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/03773db25bb6fc136fe28f0c8036a8b0a738c7a3b1230905ee56396fe5d01037/sqlc-dev/sqlc/issues/1126
og:image:altPrior 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerhodee
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git
octolytics-dimension-user_id136738596
octolytics-dimension-user_loginsqlc-dev
octolytics-dimension-repository_id193160679
octolytics-dimension-repository_nwosqlc-dev/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id193160679
octolytics-dimension-repository_network_root_nwosqlc-dev/sqlc
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/issues/1126#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fissues%2F1126
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fissues%2F1126
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/issues/1126
Reloadhttps://github.com/sqlc-dev/sqlc/issues/1126
Reloadhttps://github.com/sqlc-dev/sqlc/issues/1126
sqlc-devhttps://github.com/sqlc-dev
sqlchttps://github.com/sqlc-dev/sqlc
Codehttps://github.com/sqlc-dev/sqlc
Issues600 (600)https://github.com/sqlc-dev/sqlc/issues
Pull requests132 (132)https://github.com/sqlc-dev/sqlc/pulls
Discussionshttps://github.com/sqlc-dev/sqlc/discussions
Actionshttps://github.com/sqlc-dev/sqlc/actions
Projectshttps://github.com/sqlc-dev/sqlc/projects
Security and qualityhttps://github.com/sqlc-dev/sqlc/security
Insightshttps://github.com/sqlc-dev/sqlc/insights
https://github.com/sqlc-dev/sqlc
New issuehttps://github.com/login?return_to=https://github.com/sqlc-dev/sqlc/issues/1126
New issuehttps://github.com/login?return_to=https://github.com/sqlc-dev/sqlc/issues/1126
No longer able to retrieve enum array in v1.9.0 using pgxhttps://github.com/sqlc-dev/sqlc/issues/1126#top
📚 postgresqlhttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Abooks%3A%20postgresql%22
🔧 golanghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Awrench%3A%20golang%22
bugSomething isn't workinghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22bug%22
pgx/v4https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22pgx%2Fv4%22
https://github.com/rhodee
rhodeehttps://github.com/rhodee
on Aug 15, 2021https://github.com/sqlc-dev/sqlc/issues/1126#issue-971167557
methodhttps://pkg.go.dev/github.com/jackc/pgtype#ConnInfo.RegisterDataType
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
on Aug 15, 2021https://github.com/sqlc-dev/sqlc/issues/1126#issuecomment-899089016
https://github.com/rhodee
rhodeehttps://github.com/rhodee
on Aug 15, 2021https://github.com/sqlc-dev/sqlc/issues/1126#issuecomment-899089391
@kyleconroyhttps://github.com/kyleconroy
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
on Aug 16, 2021https://github.com/sqlc-dev/sqlc/issues/1126#issuecomment-899196184
kyleconroyhttps://github.com/kyleconroy
questionFurther information is requestedhttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22question%22
on Aug 16, 2021https://github.com/sqlc-dev/sqlc/issues/1126#event-5160753163
https://github.com/rhodee
rhodeehttps://github.com/rhodee
on Aug 16, 2021https://github.com/sqlc-dev/sqlc/issues/1126#issuecomment-899651222
@kyleconroyhttps://github.com/kyleconroy
https://github.com/rhodee/enum_array_pgxv4https://github.com/rhodee/enum_array_pgxv4
https://github.com/rhodee/enum_array_sqldbhttps://github.com/rhodee/enum_array_sqldb
kyleconroyhttps://github.com/kyleconroy
bugSomething isn't workinghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22bug%22
🔧 golanghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Awrench%3A%20golang%22
questionFurther information is requestedhttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22question%22
on Aug 16, 2021https://github.com/sqlc-dev/sqlc/issues/1126#event-5164299012
kyleconroyhttps://github.com/kyleconroy
📚 postgresqlhttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Abooks%3A%20postgresql%22
on Sep 12, 2021https://github.com/sqlc-dev/sqlc/issues/1126#event-5289502918
kyleconroyhttps://github.com/kyleconroy
pgx/v4https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22pgx%2Fv4%22
on Feb 22, 2023https://github.com/sqlc-dev/sqlc/issues/1126#event-8585473114
https://github.com/kyleconroy
kyleconroyhttps://github.com/kyleconroy
on Feb 22, 2023https://github.com/sqlc-dev/sqlc/issues/1126#issuecomment-1440805185
@rhodeehttps://github.com/rhodee
kyleconroyhttps://github.com/kyleconroy
completedhttps://github.com/sqlc-dev/sqlc/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 22, 2023https://github.com/sqlc-dev/sqlc/issues/1126#event-8585483534
kyleconroyhttps://github.com/kyleconroy
not plannedhttps://github.com/sqlc-dev/sqlc/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Feb 22, 2023https://github.com/sqlc-dev/sqlc/issues/1126#event-8585484570
Sign up for freehttps://github.com/signup?return_to=https://github.com/sqlc-dev/sqlc/issues/1126
Sign in to commenthttps://github.com/login?return_to=https://github.com/sqlc-dev/sqlc/issues/1126
📚 postgresqlhttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Abooks%3A%20postgresql%22
🔧 golanghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22%3Awrench%3A%20golang%22
bugSomething isn't workinghttps://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22bug%22
pgx/v4https://github.com/sqlc-dev/sqlc/issues?q=state%3Aopen%20label%3A%22pgx%2Fv4%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.