| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:5b38798f-d1c6-dad5-3184-511b87adecc7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8B8:2162D1:872D94:B6A937:6A50572B |
| html-safe-nonce | 166aaf375be20c8c5784f85dc2075ccf3e0ab1ea94d9eca6b227905157dbf5cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEI4OjIxNjJEMTo4NzJEOTQ6QjZBOTM3OjZBNTA1NzJCIiwidmlzaXRvcl9pZCI6IjQ0MzQ3ODMwNDMyMDc1ODM1MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd79e45889aec34fa87d0cafb14da2855ff30f35032db79fec38c4bd88b2e070 |
| hovercard-subject-tag | pull_request:3545511978 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sqlc-dev/sqlc/4383/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/0acc434c474c0a65b62e5c06b094cf261a7be6590fc7b653558fc42215f6f646/sqlc-dev/sqlc/pull/4383 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0acc434c474c0a65b62e5c06b094cf261a7be6590fc7b653558fc42215f6f646/sqlc-dev/sqlc/pull/4383 |
| og:image:alt | Summary
This PR fixes a bug where :one queries would overwrite input parameters when the return value name collides with a parameter name, causing data corruption on sql.ErrNoRows errors.
Problem
W... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kyleconroy |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-cache |
| 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 |
| Skip to content | https://github.com/sqlc-dev/sqlc/pull/4383#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F4383 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F4383 |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sqlc-dev%2Fsqlc |
| Reload | https://github.com/sqlc-dev/sqlc/pull/4383 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/4383 |
| Reload | https://github.com/sqlc-dev/sqlc/pull/4383 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/4383 |
|
sqlc-dev
| https://github.com/sqlc-dev |
| sqlc | https://github.com/sqlc-dev/sqlc |
|
Notifications
| https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc |
|
Fork
1.1k
| https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc |
|
Star
18k
| https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc |
|
Code
| https://github.com/sqlc-dev/sqlc |
|
Issues
597
| https://github.com/sqlc-dev/sqlc/issues |
|
Pull requests
106
| https://github.com/sqlc-dev/sqlc/pulls |
|
Discussions
| https://github.com/sqlc-dev/sqlc/discussions |
|
Actions
| https://github.com/sqlc-dev/sqlc/actions |
|
Projects
| https://github.com/sqlc-dev/sqlc/projects |
|
Security and quality
0
| https://github.com/sqlc-dev/sqlc/security |
|
Insights
| https://github.com/sqlc-dev/sqlc/pulse |
|
Code
| https://github.com/sqlc-dev/sqlc |
|
Issues
| https://github.com/sqlc-dev/sqlc/issues |
|
Pull requests
| https://github.com/sqlc-dev/sqlc/pulls |
|
Discussions
| https://github.com/sqlc-dev/sqlc/discussions |
|
Actions
| https://github.com/sqlc-dev/sqlc/actions |
|
Projects
| https://github.com/sqlc-dev/sqlc/projects |
|
Security and quality
| https://github.com/sqlc-dev/sqlc/security |
|
Insights
| https://github.com/sqlc-dev/sqlc/pulse |
| kyleconroy | https://github.com/kyleconroy |
| main | https://github.com/sqlc-dev/sqlc/tree/main |
| claude/detect-name-conflict-6UUyV | https://github.com/sqlc-dev/sqlc/tree/claude/detect-name-conflict-6UUyV |
| Conversation | https://github.com/sqlc-dev/sqlc/pull/4383 |
| Commits1 (1) | https://github.com/sqlc-dev/sqlc/pull/4383/commits |
| Checks | https://github.com/sqlc-dev/sqlc/pull/4383/checks |
| Files changed | https://github.com/sqlc-dev/sqlc/pull/4383/files |
| Fix parameter name collision in :one query return values | https://github.com/sqlc-dev/sqlc/pull/4383#top |
| kyleconroy | https://github.com/kyleconroy |
| main | https://github.com/sqlc-dev/sqlc/tree/main |
| claude/detect-name-conflict-6UUyV | https://github.com/sqlc-dev/sqlc/tree/claude/detect-name-conflict-6UUyV |
|
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| Apr 17, 2026 | https://github.com/sqlc-dev/sqlc/pull/4383#issue-4282917795 |
| #4354 | https://github.com/sqlc-dev/sqlc/issues/4354 |
| https://claude.ai/code/session_01Ly2rRRcRPXhT2bm6odjeqx | https://claude.ai/code/session_01Ly2rRRcRPXhT2bm6odjeqx |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/4383 |
|
| https://github.com/claude |
| Rename :one return variable when it conflicts with a parameter | https://github.com/sqlc-dev/sqlc/pull/4383/commits/6028cd21776cfabf3818f7afa91d16dddc9624c9 |
| 6028cd2 | https://github.com/sqlc-dev/sqlc/pull/4383/commits/6028cd21776cfabf3818f7afa91d16dddc9624c9 |
| #4354 | https://github.com/sqlc-dev/sqlc/issues/4354 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| 07c3808 | https://github.com/sqlc-dev/sqlc/commit/07c3808567bdab1bcdc75437b858778169ac925b |
| Apr 17, 2026 | https://github.com/sqlc-dev/sqlc/pull/4383#event-24610302267 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/4383 |
| https://github.com/kyleconroy |
| kyleconroy | https://github.com/kyleconroy |
| April 17, 2026 13:54 | https://github.com/sqlc-dev/sqlc/pull/4383#event-24610303447 |
| khepin | https://github.com/khepin |
|
Apr 18, 2026
| https://github.com/sqlc-dev/sqlc/pull/4383#ref-commit-1613aec |
|
| https://github.com/khepin |
| Merge branch 'main' of | https://github.com/khepin/sqlc/commit/1613aec04418ac005caf28d3a56a602374518e80 |
| https://github.com/sqlc-dev/sqlc | https://github.com/sqlc-dev/sqlc |
| into fix-sqli… | https://github.com/khepin/sqlc/commit/1613aec04418ac005caf28d3a56a602374518e80 |
| 1613aec | https://github.com/khepin/sqlc/commit/1613aec04418ac005caf28d3a56a602374518e80 |
| https://github.com/sqlc-dev/sqlc | https://github.com/sqlc-dev/sqlc |
| sqlc-dev#4387 | https://github.com/sqlc-dev/sqlc/pull/4387 |
| sqlc-dev#4383 | https://github.com/sqlc-dev/sqlc/pull/4383 |
| sqlc-dev#4385 | https://github.com/sqlc-dev/sqlc/pull/4385 |
| sqlc-dev#4384 | https://github.com/sqlc-dev/sqlc/pull/4384 |
| sqlc-dev#4382 | https://github.com/sqlc-dev/sqlc/pull/4382 |
| sqlc-dev#4381 | https://github.com/sqlc-dev/sqlc/pull/4381 |
| sqlc-dev#4380 | https://github.com/sqlc-dev/sqlc/pull/4380 |
| sqlc-dev#4368 | https://github.com/sqlc-dev/sqlc/pull/4368 |
| sqlc-dev#4363 | https://github.com/sqlc-dev/sqlc/pull/4363 |
| sqlc-dev#4357 | https://github.com/sqlc-dev/sqlc/pull/4357 |
| sqlc-dev#4379 | https://github.com/sqlc-dev/sqlc/pull/4379 |
| sqlc-dev#4378 | https://github.com/sqlc-dev/sqlc/pull/4378 |
| sqlc-dev#4320 | https://github.com/sqlc-dev/sqlc/pull/4320 |
| sqlc-dev#4371 | https://github.com/sqlc-dev/sqlc/pull/4371 |
| sqlc-dev#4377 | https://github.com/sqlc-dev/sqlc/pull/4377 |
| sqlc-dev#4366 | https://github.com/sqlc-dev/sqlc/pull/4366 |
|
Merge upstream v1.31.1
coder/sqlc#6
| https://github.com/coder/sqlc/pull/6 |
|
fix: bump sqlc fork to v1.31.1 merge, strip pg_dump meta-commands
coder/coder#25105
| https://github.com/coder/coder/pull/25105 |
| ethanndickson | https://github.com/ethanndickson |
|
May 11, 2026
| https://github.com/sqlc-dev/sqlc/pull/4383#ref-commit-c0e5853 |
|
| https://github.com/ethanndickson |
| fix: bump sqlc fork to v1.31.1 merge, strip pg_dump meta-commands | https://github.com/coder/coder/commit/c0e585361664e7fc6fbb8dacc0e0b762adadb8f0 |
| c0e5853 | https://github.com/coder/coder/commit/c0e585361664e7fc6fbb8dacc0e0b762adadb8f0 |
| coder/internal#965 | https://github.com/coder/internal/issues/965 |
| coder/sqlc#6 | https://github.com/coder/sqlc/pull/6 |
| sqlc-dev/sqlc#4390 | https://github.com/sqlc-dev/sqlc/pull/4390 |
| #19696 | https://github.com/coder/coder/pull/19696 |
| sqlc-dev/sqlc#4383 | https://github.com/sqlc-dev/sqlc/pull/4383 |
| ethanndickson | https://github.com/ethanndickson |
|
May 13, 2026
| https://github.com/sqlc-dev/sqlc/pull/4383#ref-commit-ec174de |
|
| https://github.com/ethanndickson |
| fix: bump sqlc fork to v1.31.1 merge, strip pg_dump meta-commands | https://github.com/coder/coder/commit/ec174deba037bc7da993c76d50091b009f27aace |
| ec174de | https://github.com/coder/coder/commit/ec174deba037bc7da993c76d50091b009f27aace |
| coder/internal#965 | https://github.com/coder/internal/issues/965 |
| coder/sqlc#6 | https://github.com/coder/sqlc/pull/6 |
| sqlc-dev/sqlc#4390 | https://github.com/sqlc-dev/sqlc/pull/4390 |
| #19696 | https://github.com/coder/coder/pull/19696 |
| sqlc-dev/sqlc#4383 | https://github.com/sqlc-dev/sqlc/pull/4383 |
| ethanndickson | https://github.com/ethanndickson |
|
May 13, 2026
| https://github.com/sqlc-dev/sqlc/pull/4383#ref-commit-8955599 |
|
| https://github.com/ethanndickson |
| fix: bump sqlc fork to v1.31.1 merge, strip pg_dump meta-commands ( | https://github.com/coder/coder/commit/8955599bd0b5006478a53ce4c3c465407846fd6c |
| #2… | https://github.com/coder/coder/pull/25105 |
| 8955599 | https://github.com/coder/coder/commit/8955599bd0b5006478a53ce4c3c465407846fd6c |
| …5105 | https://github.com/coder/coder/pull/25105 |
| coder/internal#965 | https://github.com/coder/internal/issues/965 |
| #19696 | https://github.com/coder/coder/pull/19696 |
| coder/sqlc@337309b | https://github.com/coder/sqlc/commit/337309bfb9524f38466a5090e310040fc7af0203 |
| coder/sqlc#6 | https://github.com/coder/sqlc/pull/6 |
| sqlc-dev/sqlc#4390 | https://github.com/sqlc-dev/sqlc/pull/4390 |
| sqlc-dev/sqlc#4390 | https://github.com/sqlc-dev/sqlc/pull/4390 |
| #19696 | https://github.com/coder/coder/pull/19696 |
| sqlc-dev/sqlc#4383 | https://github.com/sqlc-dev/sqlc/pull/4383 |
| sqlc-dev/sqlc#4383 | https://github.com/sqlc-dev/sqlc/pull/4383 |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F4383 |
|
bug if column and param share the same name
| https://github.com/sqlc-dev/sqlc/issues/4354 |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/4383 |
|
| https://github.com/kyleconroy |
|
| https://github.com/claude |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |