René's URL Explorer Experiment


Title: Track scope for CTEs to fix ambiguous column bug by mafredri · Pull Request #1 · coder/sqlc · GitHub

Open Graph Title: Track scope for CTEs to fix ambiguous column bug by mafredri · Pull Request #1 · coder/sqlc

X Title: Track scope for CTEs to fix ambiguous column bug by mafredri · Pull Request #1 · coder/sqlc

Description: Generate type-safe code from SQL. Contribute to coder/sqlc development by creating an account on GitHub.

Open Graph Description: While adding a simple EXISTS condition, I ran into an sqlc bug because it wasn't tracking scope for CTEs. query.sql:11:20: column reference "owner_id" is ambiguous query.sql:24:20: co...

X Description: While adding a simple EXISTS condition, I ran into an sqlc bug because it wasn't tracking scope for CTEs. query.sql:11:20: column reference "owner_id" is ambiguous query.s...

Opengraph URL: https://github.com/coder/sqlc/pull/1

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1d7dc438-4251-79bd-9a4b-ca1c33602ae8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE9CA:11A2A:A7B927E:AB34EC3:6A50BA2B
html-safe-nonceaad1c76db7d22bf109049c57e87ab520c4d9c5f5ef0e894a8a0fc5754f3769dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUNBOjExQTJBOkE3QjkyN0U6QUIzNEVDMzo2QTUwQkEyQiIsInZpc2l0b3JfaWQiOiIxNzM4MzM3OTE4MzQxMTM0ODkxIiwicmVnaW9uX2VkZ2UiOiJzZWEiLCJyZWdpb25fcmVuZGVyIjoic2VhIn0=
visitor-hmacf076dafbf71c1a9b3ea94ab5d2d2dbff35b5f3447a59c2e954329acd6dfa06e3
hovercard-subject-tagpull_request:2958241986
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/sqlc/1/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2e48dbe47ad3aec8163729229982b34762ef5949dd5e21bfd23073fa5a0f79cd/coder/sqlc/pull/1
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2e48dbe47ad3aec8163729229982b34762ef5949dd5e21bfd23073fa5a0f79cd/coder/sqlc/pull/1
og:image:altWhile adding a simple EXISTS condition, I ran into an sqlc bug because it wasn't tracking scope for CTEs. query.sql:11:20: column reference "owner_id" is ambiguous query.sql:24:20: co...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemafredri
hostnamegithub.com
expected-hostnamegithub.com
None63772747707af4093f0d5fc7aa1bb3bb55f412a9865207c4f421aa34c64cc404
turbo-cache-controlno-cache
go-importgithub.com/coder/sqlc git https://github.com/coder/sqlc.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id1085583922
octolytics-dimension-repository_nwocoder/sqlc
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id193160679
octolytics-dimension-repository_parent_nwosqlc-dev/sqlc
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
releaseded53fe94e3ff1bb4dbf8cc77e285396c92580fb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/coder/sqlc/pull/1#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fsqlc%2Fpull%2F1
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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%2Fcoder%2Fsqlc%2Fpull%2F1
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=coder%2Fsqlc
Reloadhttps://github.com/coder/sqlc/pull/1
Reloadhttps://github.com/coder/sqlc/pull/1
Reloadhttps://github.com/coder/sqlc/pull/1
Please reload this pagehttps://github.com/coder/sqlc/pull/1
coder https://github.com/coder
sqlchttps://github.com/coder/sqlc
sqlc-dev/sqlchttps://github.com/sqlc-dev/sqlc
Notifications https://github.com/login?return_to=%2Fcoder%2Fsqlc
Fork 1 https://github.com/login?return_to=%2Fcoder%2Fsqlc
Star 1 https://github.com/login?return_to=%2Fcoder%2Fsqlc
Code https://github.com/coder/sqlc
Pull requests 3 https://github.com/coder/sqlc/pulls
Actions https://github.com/coder/sqlc/actions
Projects https://github.com/coder/sqlc/projects
Security and quality 0 https://github.com/coder/sqlc/security
Insights https://github.com/coder/sqlc/pulse
Code https://github.com/coder/sqlc
Pull requests https://github.com/coder/sqlc/pulls
Actions https://github.com/coder/sqlc/actions
Projects https://github.com/coder/sqlc/projects
Security and quality https://github.com/coder/sqlc/security
Insights https://github.com/coder/sqlc/pulse
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/sqlc/tree/main
mafredri/fix-ambiguous-columnhttps://github.com/coder/sqlc/tree/mafredri/fix-ambiguous-column
Conversationhttps://github.com/coder/sqlc/pull/1
Commits1 (1)https://github.com/coder/sqlc/pull/1/commits
Checkshttps://github.com/coder/sqlc/pull/1/checks
Files changedhttps://github.com/coder/sqlc/pull/1/files
Track scope for CTEs to fix ambiguous column bughttps://github.com/coder/sqlc/pull/1#top
mafredrihttps://github.com/mafredri
mainhttps://github.com/coder/sqlc/tree/main
mafredri/fix-ambiguous-columnhttps://github.com/coder/sqlc/tree/mafredri/fix-ambiguous-column
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Oct 29, 2025https://github.com/coder/sqlc/pull/1#issue-3565107846
Please reload this pagehttps://github.com/coder/sqlc/pull/1
https://github.com/coder/sqlc/tree/mafredri/fix-ambiguous-column.importhttps://github.com/coder/sqlc/tree/mafredri/fix-ambiguous-column.import
sqlc-dev#4159https://github.com/sqlc-dev/sqlc/pull/4159
Please reload this pagehttps://github.com/coder/sqlc/pull/1
https://github.com/mafredri
Track scope for CTEs to fix ambiguous column bughttps://github.com/coder/sqlc/pull/1/commits/7c1a82bce023a2a5226ef4ff9db030b6529cd2ee
7c1a82bhttps://github.com/coder/sqlc/pull/1/commits/7c1a82bce023a2a5226ef4ff9db030b6529cd2ee
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-pullrequest-3557032607
fix: deprecate codersdk.AITaskPromptParameterName and reduce usage coder/coder#20501 https://github.com/coder/coder/pull/20501
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-68bdd15
https://github.com/mafredri
build: switch to coder/sqlc forkhttps://github.com/coder/coder/commit/68bdd152e84bff5f17889dbd8e9a1f4dc2cb4770
68bdd15https://github.com/coder/coder/commit/68bdd152e84bff5f17889dbd8e9a1f4dc2cb4770
coder/sqlc#1https://github.com/coder/sqlc/pull/1
#20501https://github.com/coder/coder/pull/20501
sqlc-dev/sqlc#4159https://github.com/sqlc-dev/sqlc/pull/4159
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-pullrequest-3565281434
fix: switch to coder/sqlc fork coder/coder#20536 https://github.com/coder/coder/pull/20536
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-a8849ce
https://github.com/mafredri
build: switch to coder/sqlc forkhttps://github.com/coder/coder/commit/a8849cea2079c2854f9e1af8db5c1cd33fc43087
a8849cehttps://github.com/coder/coder/commit/a8849cea2079c2854f9e1af8db5c1cd33fc43087
coder/sqlc#1https://github.com/coder/sqlc/pull/1
#20501https://github.com/coder/coder/pull/20501
sqlc-dev/sqlc#4159https://github.com/sqlc-dev/sqlc/pull/4159
https://github.com/mafredri
mafredrihttps://github.com/mafredri
force-pushedhttps://github.com/coder/sqlc/compare/5f673219b606e61d36ef79e04f34367551c4f86a..7c1a82bce023a2a5226ef4ff9db030b6529cd2ee
5f67321https://github.com/coder/sqlc/commit/5f673219b606e61d36ef79e04f34367551c4f86a
7c1a82bhttps://github.com/coder/sqlc/commit/7c1a82bce023a2a5226ef4ff9db030b6529cd2ee
Compare https://github.com/coder/sqlc/compare/5f673219b606e61d36ef79e04f34367551c4f86a..7c1a82bce023a2a5226ef4ff9db030b6529cd2ee
October 29, 2025 12:09https://github.com/coder/sqlc/pull/1#event-20577949077
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-b77ef1f
https://github.com/mafredri
build: switch to coder/sqlc forkhttps://github.com/coder/coder/commit/b77ef1f551149d7f05ec9c63e8fb30359e6a8848
b77ef1fhttps://github.com/coder/coder/commit/b77ef1f551149d7f05ec9c63e8fb30359e6a8848
coder/sqlc#1https://github.com/coder/sqlc/pull/1
#20501https://github.com/coder/coder/pull/20501
sqlc-dev/sqlc#4159https://github.com/sqlc-dev/sqlc/pull/4159
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-f2d1ee0
https://github.com/mafredri
build: switch to coder/sqlc forkhttps://github.com/coder/coder/commit/f2d1ee0a669cb4f9d42e8098ca0808c301ce8800
f2d1ee0https://github.com/coder/coder/commit/f2d1ee0a669cb4f9d42e8098ca0808c301ce8800
coder/sqlc#1https://github.com/coder/sqlc/pull/1
#20501https://github.com/coder/coder/pull/20501
sqlc-dev/sqlc#4159https://github.com/sqlc-dev/sqlc/pull/4159
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#pullrequestreview-3393059190
View reviewed changes https://github.com/coder/sqlc/pull/1/files/7c1a82bce023a2a5226ef4ff9db030b6529cd2ee
internal/endtoend/testdata/cte_ambiguous_column/postgresql/stdlib/query.sqlhttps://github.com/coder/sqlc/pull/1/files/7c1a82bce023a2a5226ef4ff9db030b6529cd2ee#diff-1dce9dcafbadacaa0f346a08ed9f7c531d757e2cd765781931a9471790c7bf40
mafredrihttps://github.com/mafredri
Oct 29, 2025https://github.com/coder/sqlc/pull/1#discussion_r2472803268
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/sqlc/pull/1
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-43145d3
https://github.com/mafredri
build: switch to coder/sqlc forkhttps://github.com/coder/coder/commit/43145d35a35e2be7f08c0334ddbae5ae52d8022b
43145d3https://github.com/coder/coder/commit/43145d35a35e2be7f08c0334ddbae5ae52d8022b
coder/sqlc#1https://github.com/coder/sqlc/pull/1
#20501https://github.com/coder/coder/pull/20501
sqlc-dev/sqlc#4159https://github.com/sqlc-dev/sqlc/pull/4159
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-303e9ef
https://github.com/mafredri
fix: switch to coder/sqlc fork (https://github.com/coder/coder/commit/303e9ef7def51f275061f7230c75d0e491654386
#20536https://github.com/coder/coder/pull/20536
)https://github.com/coder/coder/commit/303e9ef7def51f275061f7230c75d0e491654386
303e9efhttps://github.com/coder/coder/commit/303e9ef7def51f275061f7230c75d0e491654386
coder/sqlc#1https://github.com/coder/sqlc/pull/1
#20501https://github.com/coder/coder/pull/20501
sqlc-dev/sqlc#4159https://github.com/sqlc-dev/sqlc/pull/4159
mafredrihttps://github.com/mafredri
Oct 29, 2025 https://github.com/coder/sqlc/pull/1#ref-commit-859e94d
https://github.com/mafredri
fix: deprecate codersdk.AITaskPromptParameterName and reduce usage (https://github.com/coder/coder/commit/859e94d67a8197c258c8d4fa45d54086558edfad
#…https://github.com/coder/coder/pull/20501
859e94dhttps://github.com/coder/coder/commit/859e94d67a8197c258c8d4fa45d54086558edfad
…20501https://github.com/coder/coder/pull/20501
coder/sqlc#1https://github.com/coder/sqlc/pull/1
coder/internal#979https://github.com/coder/internal/issues/979
coder/internal#973https://github.com/coder/internal/issues/973
https://github.co/hiddenchars
https://github.com/coder/sqlc/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fsqlc%2Fpull%2F1
Please reload this pagehttps://github.com/coder/sqlc/pull/1
https://github.com/mafredri
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.