René's URL Explorer Experiment


Title: Render single spaces in DROP PRIMARY KEY, RENAME TABLE and indexes by minleejae · Pull Request #2792 · JSQLParser/JSqlParser · GitHub

Open Graph Title: Render single spaces in DROP PRIMARY KEY, RENAME TABLE and indexes by minleejae · Pull Request #2792 · JSQLParser/JSqlParser

X Title: Render single spaces in DROP PRIMARY KEY, RENAME TABLE and indexes by minleejae · Pull Request #2792 · JSQLParser/JSqlParser

Description: Purpose Render DDL with single spaces between words. Today: ALTER TABLE t DROP PRIMARY KEY ends with a space, and with a parameter renders DROP PRIMARY KEY CASCADE. RENAME TABLE t TO t2 renders RENAME TABLE t TO t2. ALTER TABLE t ADD INDEX i (a) renders ADD INDEX i (a). The SQL still reparses, but the extra spaces differ from the input and from each other. Current design (As-is) The DROP PRIMARY KEY renderer appends a trailing space. The shared tail adds its own space before parameters. RenameTableStatement appends " TABLE " and then " " or " IF EXISTS ". Index prefixes its keyword and name with a space even when no index type precedes them. An index with only a keyword or a name therefore renders a leading space. Target design (To-be) Separate these words with exactly one space and add no leading or trailing space. Rendered SQL is otherwise unchanged. The SQL renderer and StatementDeParser produce the same text. Validation New DeparseWhitespaceTest: Compares toString() and StatementDeParser output exactly for DROP PRIMARY KEY (alone, with CASCADE, and followed by another action), RENAME (with and without TABLE, IF EXISTS, and several tables), ADD INDEX/ADD KEY, and an index inside CREATE TABLE. Checks constructed Index declarations directly. Three existing assertions that encoded ADD INDEX now expect a single space. Java 17 offline Gradle spotlessApply check: 10,105 tests, 10,080 passed, 25 skipped, zero failures/errors. Ran the rendered statements on MySQL 8.4, MySQL 8.0 and MariaDB 11.4 (19 cases), including MariaDB RENAME TABLE IF EXISTS. All succeed in original and rendered form. Integration validation Applied #2788, #2789, #2790, #2791 and #2792 together on master (166f0a27): Every pair merges without conflicts, and the combined grammar is free of choice conflicts. The integrated build passes Java 17 offline Gradle spotlessApply check: 10,150 tests, 10,125 passed, 25 skipped, zero failures/errors. With the integrated build, the same server results hold on MySQL 8.4, MySQL 8.0, MariaDB 11.4 and PostgreSQL 18.3: the 95 statement cases of these PRs; the 11 default-mode drop cases; 51 string literal comparisons, including 16 mixed-escape literals that need #2790 and #2791 together.

Open Graph Description: Purpose Render DDL with single spaces between words. Today: ALTER TABLE t DROP PRIMARY KEY ends with a space, and with a parameter renders DROP PRIMARY KEY CASCADE. RENAME TABLE t TO t2 renders R...

X Description: Purpose Render DDL with single spaces between words. Today: ALTER TABLE t DROP PRIMARY KEY ends with a space, and with a parameter renders DROP PRIMARY KEY CASCADE. RENAME TABLE t TO t2 renders R...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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:aaf98909-d70e-d242-7ce9-3d7109b41f63
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC64C:194050:29883:36371:6B04923E
html-safe-nonce5fbe08a9d638aeb598e8c8e24fee82e12d308be15dcf4ff7240fb3f014a63507
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjRDOjE5NDA1MDoyOTg4MzozNjM3MTo2QjA0OTIzRSIsInZpc2l0b3JfaWQiOiI1MTgzMjU1NzIzODk5MTMwNDMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacddeb728dec487f513b56084aeb3c11a0f4239c87fb5d1a974deb5e0d6b748642
hovercard-subject-tagpull_request:4838502012
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/2792/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 Render DDL with single spaces between words. Today: ALTER TABLE t DROP PRIMARY KEY ends with a space, and with a parameter renders DROP PRIMARY KEY CASCADE. RENAME TABLE t TO t2 renders R...
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/2792/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2792%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%2F2792%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/2792/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2792/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2792/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/deparse-whitespace-20261013https://github.com/minleejae/JSqlParser/tree/fix/deparse-whitespace-20261013
Conversation 1 https://github.com/JSQLParser/JSqlParser/pull/2792
Commits 1 https://github.com/JSQLParser/JSqlParser/pull/2792/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2792/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2792/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2792/files
Render single spaces in DROP PRIMARY KEY, RENAME TABLE and indexes https://github.com/JSQLParser/JSqlParser/pull/2792/files#top
Show all changes 1 commit https://github.com/JSQLParser/JSqlParser/pull/2792/files
6e1f4ea fix: render single spaces in DROP PRIMARY KEY, RENAME TABLE and indexes minleejae Oct 13, 2026 https://github.com/JSQLParser/JSqlParser/pull/2792/commits/6e1f4ea343776ea63868f0eed9712980fae01c03
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2792/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2792/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2792/files
AlterExpression.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-fc44472f677ed768eaa549485c7ef8096a5efb18be17c46e44c1ed5c6348ef4b
RenameTableStatement.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-a3e312c53cd255951f64142acddead1d36b18d66f99f9398d7d28a54aba6c668
Index.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-299909b425e3448e5aecaa71be2ac9bfb9dbf79e182bcdc1aaa3940881c15797
AlterConstraintSeparationTest.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
DeparseWhitespaceTest.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-b5a0cad32dd1d3a6ae5d01b691a23d75230e2ad67728027e10befbe1cd322929
IndexOptionBoundaryTest.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-b0e241b5cd44bf55d056db1d938053fcd726f0ad50293222853e73fc0ce0d01b
TableConstraintExpressionDeParserTest.java https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-9b38c758695db5a865c0eaa33f0ff2c7d922bd2f9f5af3d48ef59a1413cab5a6
src/main/java/net/sf/jsqlparser/statement/alter/AlterExpression.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-fc44472f677ed768eaa549485c7ef8096a5efb18be17c46e44c1ed5c6348ef4b
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/main/java/net/sf/jsqlparser/statement/alter/AlterExpression.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-fc44472f677ed768eaa549485c7ef8096a5efb18be17c46e44c1ed5c6348ef4b
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-fc44472f677ed768eaa549485c7ef8096a5efb18be17c46e44c1ed5c6348ef4b
src/main/java/net/sf/jsqlparser/statement/alter/RenameTableStatement.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-a3e312c53cd255951f64142acddead1d36b18d66f99f9398d7d28a54aba6c668
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/main/java/net/sf/jsqlparser/statement/alter/RenameTableStatement.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-a3e312c53cd255951f64142acddead1d36b18d66f99f9398d7d28a54aba6c668
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-a3e312c53cd255951f64142acddead1d36b18d66f99f9398d7d28a54aba6c668
src/main/java/net/sf/jsqlparser/statement/create/table/Index.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-299909b425e3448e5aecaa71be2ac9bfb9dbf79e182bcdc1aaa3940881c15797
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/main/java/net/sf/jsqlparser/statement/create/table/Index.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-299909b425e3448e5aecaa71be2ac9bfb9dbf79e182bcdc1aaa3940881c15797
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-299909b425e3448e5aecaa71be2ac9bfb9dbf79e182bcdc1aaa3940881c15797
src/test/java/net/sf/jsqlparser/statement/alter/AlterConstraintSeparationTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/test/java/net/sf/jsqlparser/statement/alter/AlterConstraintSeparationTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-afc89d29704da67f46f32d95e7629de6f193ac30b1ef06a4d44097454d4646ac
src/test/java/net/sf/jsqlparser/statement/alter/DeparseWhitespaceTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-b5a0cad32dd1d3a6ae5d01b691a23d75230e2ad67728027e10befbe1cd322929
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/test/java/net/sf/jsqlparser/statement/alter/DeparseWhitespaceTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
src/test/java/net/sf/jsqlparser/statement/alter/IndexOptionBoundaryTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-b0e241b5cd44bf55d056db1d938053fcd726f0ad50293222853e73fc0ce0d01b
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/test/java/net/sf/jsqlparser/statement/alter/IndexOptionBoundaryTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-b0e241b5cd44bf55d056db1d938053fcd726f0ad50293222853e73fc0ce0d01b
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-b0e241b5cd44bf55d056db1d938053fcd726f0ad50293222853e73fc0ce0d01b
src/test/java/net/sf/jsqlparser/util/deparser/TableConstraintExpressionDeParserTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-9b38c758695db5a865c0eaa33f0ff2c7d922bd2f9f5af3d48ef59a1413cab5a6
View file https://github.com/minleejae/JSqlParser/blob/6e1f4ea343776ea63868f0eed9712980fae01c03/src/test/java/net/sf/jsqlparser/util/deparser/TableConstraintExpressionDeParserTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2792/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-9b38c758695db5a865c0eaa33f0ff2c7d922bd2f9f5af3d48ef59a1413cab5a6
https://github.com/JSQLParser/JSqlParser/pull/2792/files#diff-9b38c758695db5a865c0eaa33f0ff2c7d922bd2f9f5af3d48ef59a1413cab5a6
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2792/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.