René's URL Explorer Experiment


Title: Fix editable key columns after clearing legacy names by minleejae · Pull Request #2775 · JSQLParser/JSqlParser · GitHub

Open Graph Title: Fix editable key columns after clearing legacy names by minleejae · Pull Request #2775 · JSQLParser/JSqlParser

X Title: Fix editable key columns after clearing legacy names by minleejae · Pull Request #2775 · JSQLParser/JSqlParser

Description: Purpose Allow callers to clear an index or constraint's legacy column names and then repopulate its structured key list. Today key.setColumnsNames(null) followed by addColumns(...) throws UnsupportedOperationException. Current design (As-is) The shared KeyColumnSource.setColumnsNames(null) installs Collections.emptyList(). Index, primary/unique key, foreign key and exclusion constraint nodes retain that list. Their fluent appenders expect an editable list, so null-clear behaves differently from an empty-name replacement. Target design (To-be) Use an empty ArrayList in the shared null-clear path. Both null and empty name lists clear the keys and leave them editable through getColumns() and the existing addColumns overloads. The legacy accessor still returns a rendered snapshot; replacing names still creates opaque keys and discards prior element-specific options. Indexes and constraints remain separate types. key.setColumnsNames(null); key.getColumns().add(new KeyElement("id")); Validation Regression coverage exercises indexes, primary keys, unique keys, foreign keys and exclusion constraints, with null/empty clears, collection/varargs appenders and direct structured-list edits. Both toString() and StatementDeParser preserve the restored SQL and key options; rendered statements reparse successfully. Default PMD complexity and field-placement rules: zero violations for the changed shared interface. Java 17 offline Gradle spotlessApply check: 10,045 tests, 10,020 passed, 25 skipped, zero failures/errors. Grammar, Checkstyle, PMD, SpotBugs and coverage checks pass. Integration validation Applied #2770, #2771 and all four follow-ups (#2775–#2778) together on master (066f581e), resolving overlapping validator edits while preserving their respective behavior. The integrated build passes Java 17 offline Gradle spotlessApply check: 10,141 tests, 10,116 passed, 25 skipped, zero failures/errors. The combined ALTER validator has zero findings under the default PMD complexity and field-placement rules. Replayed 882 previously DB-validated MySQL/PostgreSQL DDL fixtures: 875 pass and the same seven existing parse gaps remain. SQL output, reparsing and AST node-type sets match the preceding integration baseline, with no new differences. This replay did not rerun the databases. The published head passes grammar checks, Gradle and Maven on Ubuntu/Windows/macOS, and Codacy. Deployment-only jobs are skipped as expected for a PR.

Open Graph Description: Purpose Allow callers to clear an index or constraint's legacy column names and then repopulate its structured key list. Today key.setColumnsNames(null) followed by addColumns(...) throws Unsup...

X Description: Purpose Allow callers to clear an index or constraint's legacy column names and then repopulate its structured key list. Today key.setColumnsNames(null) followed by addColumns(...) throws U...

Opengraph URL: https://github.com/JSQLParser/JSqlParser/pull/2775

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:596b9659-0e78-92de-c9da-01ac20fd5316
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA40E:22CC3D:28770:366CB:6B04923C
html-safe-nonce65d9854bc925b743157775577dff17ecb785b48620540dd26ef6d930220eac71
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDBFOjIyQ0MzRDoyODc3MDozNjZDQjo2QjA0OTIzQyIsInZpc2l0b3JfaWQiOiI4MjAzMDIyODc3MjUyMTYyMTA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac56c58829cfed861439dabae8f8951a86e9f0dc0c2550d863b9d5dd5363af716c
hovercard-subject-tagpull_request:4819881379
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/JSQLParser/JSqlParser/pull/2775/files
twitter:imagehttps://avatars.githubusercontent.com/u/55116920?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/55116920?s=400&v=4
og:image:altPurpose Allow callers to clear an index or constraint's legacy column names and then repopulate its structured key list. Today key.setColumnsNames(null) followed by addColumns(...) throws Unsup...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git
octolytics-dimension-user_id4643847
octolytics-dimension-user_loginJSQLParser
octolytics-dimension-repository_id1944709
octolytics-dimension-repository_nwoJSQLParser/JSqlParser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1944709
octolytics-dimension-repository_network_root_nwoJSQLParser/JSqlParser
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
releaseb51ce57ca6d4565a42856fc1c9897077c794597f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2775/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2775%2Ffiles
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%2FJSQLParser%2FJSqlParser%2Fpull%2F2775%2Ffiles
Sign uphttps://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=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2775/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2775/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2775/files
JSQLParserhttps://github.com/JSQLParser
JSqlParserhttps://github.com/JSQLParser/JSqlParser
Codehttps://github.com/JSQLParser/JSqlParser
Issues2 (2)https://github.com/JSQLParser/JSqlParser/issues
Pull requests2 (2)https://github.com/JSQLParser/JSqlParser/pulls
Discussionshttps://github.com/JSQLParser/JSqlParser/discussions
Actionshttps://github.com/JSQLParser/JSqlParser/actions
Projectshttps://github.com/JSQLParser/JSqlParser/projects
Wikihttps://github.com/JSQLParser/JSqlParser/wiki
Security and qualityhttps://github.com/JSQLParser/JSqlParser/security
Insightshttps://github.com/JSQLParser/JSqlParser/insights
Sign up for GitHub https://github.com/signup?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJSQLParser%2FJSqlParser%2Fissues%2Fnew%2Fchoose
manticore-projectshttps://github.com/manticore-projects
JSQLParser:masterhttps://github.com/JSQLParser/JSqlParser/tree/master
minleejae:fix/key-column-clear-append-20261011https://github.com/minleejae/JSqlParser/tree/fix/key-column-clear-append-20261011
Conversation 0 https://github.com/JSQLParser/JSqlParser/pull/2775
Commits 1 https://github.com/JSQLParser/JSqlParser/pull/2775/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2775/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2775/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2775/files
Fix editable key columns after clearing legacy names https://github.com/JSQLParser/JSqlParser/pull/2775/files#top
Show all changes 1 commit https://github.com/JSQLParser/JSqlParser/pull/2775/files
787f33e fix: keep cleared index and constraint keys editable minleejae Oct 11, 2026 https://github.com/JSQLParser/JSqlParser/pull/2775/commits/787f33e97ed917c737c0683a5dfb8fd844b1adef
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2775/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2775/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2775/files
KeyColumnSource.java https://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-30f164474d2d658da0f0f0e6c42e436787ec0cf7c5f9f5fc53c234a7f759be99
KeyColumnSourceMutationTest.java https://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-b474b3f1f172e173a41ed3dd74c6427035695af100cb0a8679f9642f18ae347b
src/main/java/net/sf/jsqlparser/statement/create/table/KeyColumnSource.javahttps://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-30f164474d2d658da0f0f0e6c42e436787ec0cf7c5f9f5fc53c234a7f759be99
View file https://github.com/minleejae/JSqlParser/blob/787f33e97ed917c737c0683a5dfb8fd844b1adef/src/main/java/net/sf/jsqlparser/statement/create/table/KeyColumnSource.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2775/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-30f164474d2d658da0f0f0e6c42e436787ec0cf7c5f9f5fc53c234a7f759be99
https://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-30f164474d2d658da0f0f0e6c42e436787ec0cf7c5f9f5fc53c234a7f759be99
https://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-30f164474d2d658da0f0f0e6c42e436787ec0cf7c5f9f5fc53c234a7f759be99
src/test/java/net/sf/jsqlparser/statement/create/KeyColumnSourceMutationTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2775/files#diff-b474b3f1f172e173a41ed3dd74c6427035695af100cb0a8679f9642f18ae347b
View file https://github.com/minleejae/JSqlParser/blob/787f33e97ed917c737c0683a5dfb8fd844b1adef/src/test/java/net/sf/jsqlparser/statement/create/KeyColumnSourceMutationTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2775/{{ revealButtonHref }}
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2775/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.