René's URL Explorer Experiment


Title: fix(parser): pass modifier to ExceptOp/MinusOp constructors (#2419) by queelius · Pull Request #2420 · JSQLParser/JSqlParser · GitHub

Open Graph Title: fix(parser): pass modifier to ExceptOp/MinusOp constructors (#2419) by queelius · Pull Request #2420 · JSQLParser/JSqlParser

X Title: fix(parser): pass modifier to ExceptOp/MinusOp constructors (#2419) by queelius · Pull Request #2420 · JSQLParser/JSqlParser

Description: Summary Fix EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers being silently dropped during parsing Reset the modifier variable between set-operation loop iterations to prevent modifier leaking from one operator to the next Problem The grammar in JSqlParserCC.jjt captures the set operation modifier via SetOperationModifier() but constructs ExceptOp and MinusOp with their no-arg constructors (which default to empty string), discarding the captured modifier. UnionOp and IntersectOp correctly receive modifier as a constructor argument. // CORRECT: modifier passed to constructor [ modifier=SetOperationModifier() ] { UnionOp union = new UnionOp(modifier); ... } [ modifier=SetOperationModifier() ] { IntersectOp intersect = new IntersectOp(modifier); ... } // BUG: modifier NOT passed to constructor [ modifier=SetOperationModifier() ] { MinusOp minus = new MinusOp(); ... } [ modifier=SetOperationModifier() ] { ExceptOp except = new ExceptOp(); ... } Additionally, the modifier variable was not reset between iterations of the (LOOKAHEAD(2) ...)+ loop, so a UNION ALL ... EXCEPT would incorrectly leak the ALL modifier to the EXCEPT. Fix Pass modifier to MinusOp(modifier) and ExceptOp(modifier) constructors Add { modifier = null; } at the start of each loop iteration Test plan testExceptAllRoundTrip - verifies EXCEPT ALL round-trips correctly testExceptDistinctRoundTrip - verifies EXCEPT DISTINCT round-trips correctly testMinusAllRoundTrip - verifies MINUS ALL round-trips correctly testMinusDistinctRoundTrip - verifies MINUS DISTINCT round-trips correctly testModifierDoesNotLeakFromUnionAllToExcept - verifies modifier doesn't leak across operators testModifierDoesNotLeakFromIntersectAllToUnion - verifies modifier doesn't leak across operators testMixedModifiersPreserved - verifies mixed modifiers in chained set ops testExceptAllSetOperationObject / testMinusAllSetOperationObject - verifies SetOperation state Full test suite passes (4671+ tests, 0 failures) Fixes #2419 🤖 Generated with Claude Code

Open Graph Description: Summary Fix EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers being silently dropped during parsing Reset the modifier variable between set-operation loop iterations to prevent modifier leaking...

X Description: Summary Fix EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers being silently dropped during parsing Reset the modifier variable between set-operation loop iterations to prevent modifier leaking...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3c43af5f-cf1c-cdbe-8b9b-b7fa84c0035b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF6C:211BBA:BE2DCB:1039F31:6A62C129
html-safe-noncea85c8bf5d367867c1a778523f212b0a32f0c6ba6388ab223016b4d5455be82e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjZDOjIxMUJCQTpCRTJEQ0I6MTAzOUYzMTo2QTYyQzEyOSIsInZpc2l0b3JfaWQiOiI5MDIxMDQxNzA4NDg3NTkwMTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd6bd387930b05a606b15b642e3deece88d0a34b243bea8ced4281f915801e574
hovercard-subject-tagpull_request:3444431708
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/2420/files
twitter:imagehttps://avatars.githubusercontent.com/u/1896674?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1896674?s=400&v=4
og:image:altSummary Fix EXCEPT ALL/DISTINCT and MINUS ALL/DISTINCT modifiers being silently dropped during parsing Reset the modifier variable between set-operation loop iterations to prevent modifier leaking...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonedf33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd
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
released41cd1bdb290013455c0ac430fa755621733f5eb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/pull/2420/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fpull%2F2420%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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2FJSQLParser%2FJSqlParser%2Fpull%2F2420%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=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2420/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2420/files
Reloadhttps://github.com/JSQLParser/JSqlParser/pull/2420/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2420/files
JSQLParser https://github.com/JSQLParser
JSqlParserhttps://github.com/JSQLParser/JSqlParser
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2420/files
Notifications https://github.com/login?return_to=%2FJSQLParser%2FJSqlParser
Fork 1.4k https://github.com/login?return_to=%2FJSQLParser%2FJSqlParser
Star 6k https://github.com/login?return_to=%2FJSQLParser%2FJSqlParser
Code https://github.com/JSQLParser/JSqlParser
Issues 88 https://github.com/JSQLParser/JSqlParser/issues
Pull requests 2 https://github.com/JSQLParser/JSqlParser/pulls
Discussions https://github.com/JSQLParser/JSqlParser/discussions
Actions https://github.com/JSQLParser/JSqlParser/actions
Projects https://github.com/JSQLParser/JSqlParser/projects
Wiki https://github.com/JSQLParser/JSqlParser/wiki
Security and quality 0 https://github.com/JSQLParser/JSqlParser/security
Insights https://github.com/JSQLParser/JSqlParser/pulse
Code https://github.com/JSQLParser/JSqlParser
Issues https://github.com/JSQLParser/JSqlParser/issues
Pull requests https://github.com/JSQLParser/JSqlParser/pulls
Discussions https://github.com/JSQLParser/JSqlParser/discussions
Actions https://github.com/JSQLParser/JSqlParser/actions
Projects https://github.com/JSQLParser/JSqlParser/projects
Wiki https://github.com/JSQLParser/JSqlParser/wiki
Security and quality https://github.com/JSQLParser/JSqlParser/security
Insights https://github.com/JSQLParser/JSqlParser/pulse
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
queelius:fix/except-minus-all-modifier-losthttps://github.com/queelius/JSqlParser/tree/fix/except-minus-all-modifier-lost
Conversation 4 https://github.com/JSQLParser/JSqlParser/pull/2420
Commits 2 https://github.com/JSQLParser/JSqlParser/pull/2420/commits
Checks 7 https://github.com/JSQLParser/JSqlParser/pull/2420/checks
Files changed 2 https://github.com/JSQLParser/JSqlParser/pull/2420/files
fix(parser): pass modifier to ExceptOp/MinusOp constructors (#2419) https://github.com/JSQLParser/JSqlParser/pull/2420/files#top
Show all changes 2 commits https://github.com/JSQLParser/JSqlParser/pull/2420/files
b3d0b6d fix(parser): pass modifier to ExceptOp/MinusOp constructors and reset… queelius Mar 25, 2026 https://github.com/JSQLParser/JSqlParser/pull/2420/commits/b3d0b6d74a60114b84883d515e53c71cf168d3f3
38741ac refactor: convert to parameterized tests, run spotlessApply queelius Mar 25, 2026 https://github.com/JSQLParser/JSqlParser/pull/2420/commits/38741ac5c2d13460b6a8e7449b190a5afb9c2bfa
Clear filters https://github.com/JSQLParser/JSqlParser/pull/2420/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2420/files
Please reload this pagehttps://github.com/JSQLParser/JSqlParser/pull/2420/files
JSqlParserCC.jjt https://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
SetOperationModifierTest.java https://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-221f3319504a9b14a4451d819fbbe4bc7e0ad12ce1c913bb3bd8f68c5ff99962
src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjthttps://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
View file https://github.com/queelius/JSqlParser/blob/38741ac5c2d13460b6a8e7449b190a5afb9c2bfa/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2420/{{ revealButtonHref }}
https://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
https://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-d323df58a0300a038ac87b328bf05b8255ff06e6b5d0e9aeae641fa566e4068c
src/test/java/net/sf/jsqlparser/statement/select/SetOperationModifierTest.javahttps://github.com/JSQLParser/JSqlParser/pull/2420/files#diff-221f3319504a9b14a4451d819fbbe4bc7e0ad12ce1c913bb3bd8f68c5ff99962
View file https://github.com/queelius/JSqlParser/blob/38741ac5c2d13460b6a8e7449b190a5afb9c2bfa/src/test/java/net/sf/jsqlparser/statement/select/SetOperationModifierTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JSQLParser/JSqlParser/pull/2420/{{ revealButtonHref }}
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.