René's URL Explorer Experiment


Title: Catch invalid ON CONFLICT DO UPDATE column references by nikolayk812 · Pull Request #4366 · sqlc-dev/sqlc · GitHub

Open Graph Title: Catch invalid ON CONFLICT DO UPDATE column references by nikolayk812 · Pull Request #4366 · sqlc-dev/sqlc

X Title: Catch invalid ON CONFLICT DO UPDATE column references by nikolayk812 · Pull Request #4366 · sqlc-dev/sqlc

Description: Validate ON CONFLICT (col) conflict target columns exist Validate DO UPDATE SET col = ... assignment target columns exist Validate EXCLUDED.col references exist Catch missing conflict target for DO UPDATE (requires ON CONFLICT (col) or ON CONSTRAINT name) Fixes #4291

Open Graph Description: Validate ON CONFLICT (col) conflict target columns exist Validate DO UPDATE SET col = ... assignment target columns exist Validate EXCLUDED.col references exist Catch missing conflict target for DO...

X Description: Validate ON CONFLICT (col) conflict target columns exist Validate DO UPDATE SET col = ... assignment target columns exist Validate EXCLUDED.col references exist Catch missing conflict target for DO...

Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/4366

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5abfce10-eae2-3e42-0692-76a96a99add4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA372:10637F:473D1D:5E7EF3:6A516F52
html-safe-nonce14a9d34453265146e3d6e3101f9fe1607ebb17203eba4cb8a9caa2706012380f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzcyOjEwNjM3Rjo0NzNEMUQ6NUU3RUYzOjZBNTE2RjUyIiwidmlzaXRvcl9pZCI6IjQyMTcyNTUyNTQ3NDY1NTgyOTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8b2dfabfcbbf1d643c4c53118a644c23642b8a89b71a9c56e5c7959c35ffc3ff
hovercard-subject-tagpull_request:3479243923
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/4366/files
twitter:imagehttps://avatars.githubusercontent.com/u/23297850?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/23297850?s=400&v=4
og:image:altValidate ON CONFLICT (col) conflict target columns exist Validate DO UPDATE SET col = ... assignment target columns exist Validate EXCLUDED.col references exist Catch missing conflict target for DO...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb19955a9dd40fd99462443f7911b522d7216776a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/sqlc-dev/sqlc/pull/4366/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F4366%2Ffiles
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%2Fsqlc-dev%2Fsqlc%2Fpull%2F4366%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sqlc-dev%2Fsqlc
Reloadhttps://github.com/sqlc-dev/sqlc/pull/4366/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/4366/files
Reloadhttps://github.com/sqlc-dev/sqlc/pull/4366/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4366/files
sqlc-dev https://github.com/sqlc-dev
sqlchttps://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
Sign up for GitHub https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose
kyleconroyhttps://github.com/kyleconroy
sqlc-dev:mainhttps://github.com/sqlc-dev/sqlc/tree/main
nikolayk812:4291-on-conflicthttps://github.com/nikolayk812/sqlc/tree/4291-on-conflict
Conversation 0 https://github.com/sqlc-dev/sqlc/pull/4366
Commits 7 https://github.com/sqlc-dev/sqlc/pull/4366/commits
Checks 12 https://github.com/sqlc-dev/sqlc/pull/4366/checks
Files changed https://github.com/sqlc-dev/sqlc/pull/4366/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4366/files
Catch invalid ON CONFLICT DO UPDATE column references https://github.com/sqlc-dev/sqlc/pull/4366/files#top
Show all changes 7 commits https://github.com/sqlc-dev/sqlc/pull/4366/files
b7c9448 validateOnConflictColumns nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/b7c944879a193aa16e3b951f7b24b11b4d351c28
fca278d validateOnConflictTypes nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/fca278db92e597dba76b151164f4fe55aa881c16
fe19865 validateOnConflictClause nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/fe19865ac9bbd59f3cc5e97528d290d02c6a7701
95e0552 remove validateOnConflictSetTypes nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/95e05526cd87287563c4776a24e38088f8ea25ff
1ed27ef move to validate nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/1ed27efc715be49f70c6691c341ec885bf32dea8
dc37712 params order nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/dc3771270046bb944afc315af911ba8d24677478
c3d9922 ON CONSTRAINT nikolayk812 Apr 1, 2026 https://github.com/sqlc-dev/sqlc/pull/4366/commits/c3d992202eb0468f534fd4256469dc695ea39fac
Clear filters https://github.com/sqlc-dev/sqlc/pull/4366/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4366/files
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4366/files
analyze.go https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-7f656a6efa542b1c8968e5dafa70f35f10cad66da4b7e1e43968c91654b33e9a
exec.json https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-7b16d8dff41e63ad8546ec11dfdcd86c96c41e31635a956907cc58df91f13d57
query.sql https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-b7cea510f92ef2f93457bd9eef8d1982d4c7968a80dc85c077800aa6c1b9ca7e
schema.sql https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-99535130430b61bea5b225387d8518e9eeb04294b6a0443f047026b7d1502383
stderr.txt https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-1d6bc0f3a9f42b9d9226c5f89bf676998abfe6854d979865876f9dd60459a71b
insert_stmt.go https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-909773128f7937e9a959a5fe362d8e86a7893d6f3353a68698964fb67c66fb8e
internal/compiler/analyze.gohttps://github.com/sqlc-dev/sqlc/pull/4366/files#diff-7f656a6efa542b1c8968e5dafa70f35f10cad66da4b7e1e43968c91654b33e9a
View file https://github.com/nikolayk812/sqlc/blob/c3d992202eb0468f534fd4256469dc695ea39fac/internal/compiler/analyze.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4366/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-7f656a6efa542b1c8968e5dafa70f35f10cad66da4b7e1e43968c91654b33e9a
https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-7f656a6efa542b1c8968e5dafa70f35f10cad66da4b7e1e43968c91654b33e9a
internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/exec.jsonhttps://github.com/sqlc-dev/sqlc/pull/4366/files#diff-7b16d8dff41e63ad8546ec11dfdcd86c96c41e31635a956907cc58df91f13d57
View file https://github.com/nikolayk812/sqlc/blob/c3d992202eb0468f534fd4256469dc695ea39fac/internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/exec.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4366/{{ revealButtonHref }}
internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/query.sqlhttps://github.com/sqlc-dev/sqlc/pull/4366/files#diff-b7cea510f92ef2f93457bd9eef8d1982d4c7968a80dc85c077800aa6c1b9ca7e
View file https://github.com/nikolayk812/sqlc/blob/c3d992202eb0468f534fd4256469dc695ea39fac/internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/query.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4366/{{ revealButtonHref }}
internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/schema.sqlhttps://github.com/sqlc-dev/sqlc/pull/4366/files#diff-99535130430b61bea5b225387d8518e9eeb04294b6a0443f047026b7d1502383
View file https://github.com/nikolayk812/sqlc/blob/c3d992202eb0468f534fd4256469dc695ea39fac/internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/schema.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4366/{{ revealButtonHref }}
internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/stderr.txthttps://github.com/sqlc-dev/sqlc/pull/4366/files#diff-1d6bc0f3a9f42b9d9226c5f89bf676998abfe6854d979865876f9dd60459a71b
View file https://github.com/nikolayk812/sqlc/blob/c3d992202eb0468f534fd4256469dc695ea39fac/internal/endtoend/testdata/update_set_on_conflict/postgresql/pgx/stderr.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4366/{{ revealButtonHref }}
internal/sql/validate/insert_stmt.gohttps://github.com/sqlc-dev/sqlc/pull/4366/files#diff-909773128f7937e9a959a5fe362d8e86a7893d6f3353a68698964fb67c66fb8e
View file https://github.com/nikolayk812/sqlc/blob/c3d992202eb0468f534fd4256469dc695ea39fac/internal/sql/validate/insert_stmt.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/sqlc-dev/sqlc/pull/4366/{{ revealButtonHref }}
https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-909773128f7937e9a959a5fe362d8e86a7893d6f3353a68698964fb67c66fb8e
https://github.com/sqlc-dev/sqlc/pull/4366/files#diff-909773128f7937e9a959a5fe362d8e86a7893d6f3353a68698964fb67c66fb8e
Please reload this pagehttps://github.com/sqlc-dev/sqlc/pull/4366/files
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.