René's URL Explorer Experiment


Title: fix: preserve PostgreSQL quoted names, numeric scales and comment literals by minleejae · Pull Request #2638 · JSQLParser/JSqlParser · GitHub

Open Graph Title: fix: preserve PostgreSQL quoted names, numeric scales and comment literals by minleejae · Pull Request #2638 · JSQLParser/JSqlParser

X Title: fix: preserve PostgreSQL quoted names, numeric scales and comment literals by minleejae · Pull Request #2638 · JSQLParser/JSqlParser

Description: PostgreSQL quoted identifiers such as "a.b" are currently split again while constructing table and column AST nodes. For example, DROP INDEX "a.b" reports "b" as its name and invents schema "a". Numeric types with negative scales fail in type fragments, DDL and casts, and COMMENT rejects escape strings containing an escaped quote and newline-separated ordinary string literals. This change preserves lexer-separated name components with Dialect.POSTGRESQL, including table-name copies. It accepts negative numeric scales through the shared type grammar, preserves precision/scale metadata for qualified types, and distinguishes scale -1 from an omitted scale. ColDataType.fromNumericParameters supports nullable parameters while preserving the existing primitive constructor's sentinel behavior. Identifier copying is separate from reference cloning: copyIdentifierPartsTo(Table) copies parsed name components and separators into an existing table without reparsing quoted names. clone() additionally preserves the table-variable flag and resolved identifier, while setResolvedTable() stores a detached identifier-only copy. This keeps the shared name-copying logic explicit without introducing a second table-cloning method. COMMENT and SELECT share character-literal parsing. PostgreSQL E'...' enables escapes for that literal, and newline concatenation accepts ordinary quoted continuations while rejecting dollar-quoted continuations. Tagged dollar comments already work in 5.4 with the PostgreSQL preset; the existing default-off behavior is retained and covered by regression tests. Default and BigQuery dotted-name behavior is also retained. Validation: Added 75 parameterized/regression tests covering quoted object and column names, clone/resolved-table names, numeric aliases and boundaries, arrays, DDL/casts, dollar tags and bodies, E strings, literal continuation, malformed input and dialect isolation. Gradle check: 6,979 tests, no failures/errors, 25 skipped; formatting, static analysis and grammar ambiguity checks passed. Maven clean verify: 6,961 tests, no failures/errors, 25 skipped. Differential audit against PostgreSQL 18.6 and both the 5.4 release and master 6312f9e5: 253 selected cases, 237 accepted by PostgreSQL. AST/deparse checks improve from 93 to 229 passing cases, with no regressions among previously passing valid cases. All 229 regenerated valid SQL cases execute successfully on PostgreSQL. The remaining eight valid audit failures are unsupported COMMENT target kinds (INDEX, SCHEMA, SEQUENCE, DOMAIN, TYPE, MATERIALIZED VIEW, FUNCTION, CONSTRAINT), which require an extension of the Comment target AST. PostgreSQL precision/scale range validation is left to the database. Syntax references: numeric types, lexical structure, COMMENT.

Open Graph Description: PostgreSQL quoted identifiers such as "a.b" are currently split again while constructing table and column AST nodes. For example, DROP INDEX "a.b" reports "b" as its n...

X Description: PostgreSQL quoted identifiers such as "a.b" are currently split again while constructing table and column AST nodes. For example, DROP INDEX "a.b" reports &q...

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

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:a6d6b411-3610-36b0-2163-a3b55f9d14bf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9D3E:E91F9:17D6B4:20A109:6B049299
html-safe-noncefc19e61627d9ae3adbd3fc3c496579c53fea3efe8a6ef94aea47d2dfcc0621ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDNFOkU5MUY5OjE3RDZCNDoyMEExMDk6NkIwNDkyOTkiLCJ2aXNpdG9yX2lkIjoiNjM1NjE5NDg2ODQ4MTc5MDYxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9b99670192c4243184a1f9917334ec419a832fc6d0dad22ef94cce1326b99ef1
hovercard-subject-tagpull_request:4523118063
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/2638/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:altPostgreSQL quoted identifiers such as "a.b" are currently split again while constructing table and column AST nodes. For example, DROP INDEX "a.b" reports "b" as its n...
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/2638/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2638%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%2F2638%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/2638/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2638/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2638/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/postgresql-syntax-coveragehttps://github.com/minleejae/JSqlParser/tree/fix/postgresql-syntax-coverage
Conversation 3 https://github.com/JSQLParser/JSqlParser/pull/2638
Commits 2 https://github.com/JSQLParser/JSqlParser/pull/2638/commits
Checks 10 https://github.com/JSQLParser/JSqlParser/pull/2638/checks
Files changed https://github.com/JSQLParser/JSqlParser/pull/2638/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2638/files
fix: preserve PostgreSQL quoted names, numeric scales and comment literals https://github.com/JSQLParser/JSqlParser/pull/2638/files#top
Show all changes 2 commits https://github.com/JSQLParser/JSqlParser/pull/2638/files
7fa9a39 fix: preserve PostgreSQL quoted names, numeric scales and comment lit… minleejae Sep 14, 2026 https://github.com/JSQLParser/JSqlParser/pull/2638/commits/7fa9a39e467048bba7315bc59701dfa690197408
4ad229e refactor: clarify table identifier copying responsibilities minleejae Sep 18, 2026 https://github.com/JSQLParser/JSqlParser/pull/2638/commits/4ad229ee097a341ea112cbfd5a346b5d2afd3c88
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2638/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2638/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2638/files
Table.java https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-1cf41e2f96ecd03fb4168459cd4228e3d76b40d84ad4ef21abd903cee0c8b25f
ColDataType.java https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-e6a2a38587d0897ecda694c5b88543163ec210ed3db7817417fb6b34f2b2ff4e
JSqlParserCC.jjt https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
usage.rst https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-1d76e581381361db03988ab6bd07be336cb8129b61bda04ab3fe334209488c2c
PostgreSqlNumericTypeTest.java https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-bcdcbd57e8aae85be599d6dc5a907a2f13037f395eb610551b5880e839427395
PostgreSqlQuotedIdentifierTest.java https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-2c356aa807798ae95fc30dbc289859a288c2ce26ed13f50916ffd6d5a642bdb1
PostgreSqlCommentLiteralTest.java https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-5def59bad8d1eada336bf49f5dec288aba91cb1e8971230d2c8ab902aa87dfd3
src/main/java/net/sf/jsqlparser/schema/Table.javahttps://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-1cf41e2f96ecd03fb4168459cd4228e3d76b40d84ad4ef21abd903cee0c8b25f
View file https://github.com/minleejae/JSqlParser/blob/4ad229ee097a341ea112cbfd5a346b5d2afd3c88/src/main/java/net/sf/jsqlparser/schema/Table.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2638/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-1cf41e2f96ecd03fb4168459cd4228e3d76b40d84ad4ef21abd903cee0c8b25f
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-1cf41e2f96ecd03fb4168459cd4228e3d76b40d84ad4ef21abd903cee0c8b25f
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-1cf41e2f96ecd03fb4168459cd4228e3d76b40d84ad4ef21abd903cee0c8b25f
src/main/java/net/sf/jsqlparser/statement/create/table/ColDataType.javahttps://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-e6a2a38587d0897ecda694c5b88543163ec210ed3db7817417fb6b34f2b2ff4e
View file https://github.com/minleejae/JSqlParser/blob/4ad229ee097a341ea112cbfd5a346b5d2afd3c88/src/main/java/net/sf/jsqlparser/statement/create/table/ColDataType.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2638/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-e6a2a38587d0897ecda694c5b88543163ec210ed3db7817417fb6b34f2b2ff4e
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-e6a2a38587d0897ecda694c5b88543163ec210ed3db7817417fb6b34f2b2ff4e
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-e6a2a38587d0897ecda694c5b88543163ec210ed3db7817417fb6b34f2b2ff4e
https://github.com/JSQLParser/JSqlParser/pull/2638/files#diff-e6a2a38587d0897ecda694c5b88543163ec210ed3db7817417fb6b34f2b2ff4e
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2638/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2638/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.