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
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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3c43af5f-cf1c-cdbe-8b9b-b7fa84c0035b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BF6C:211BBA:BE2DCB:1039F31:6A62C129 |
| html-safe-nonce | a85c8bf5d367867c1a778523f212b0a32f0c6ba6388ab223016b4d5455be82e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjZDOjIxMUJCQTpCRTJEQ0I6MTAzOUYzMTo2QTYyQzEyOSIsInZpc2l0b3JfaWQiOiI5MDIxMDQxNzA4NDg3NTkwMTg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d6bd387930b05a606b15b642e3deece88d0a34b243bea8ced4281f915801e574 |
| hovercard-subject-tag | pull_request:3444431708 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/JSQLParser/JSqlParser/pull/2420/files |
| twitter:image | https://avatars.githubusercontent.com/u/1896674?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1896674?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/JSQLParser/JSqlParser git https://github.com/JSQLParser/JSqlParser.git |
| octolytics-dimension-user_id | 4643847 |
| octolytics-dimension-user_login | JSQLParser |
| octolytics-dimension-repository_id | 1944709 |
| octolytics-dimension-repository_nwo | JSQLParser/JSqlParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1944709 |
| octolytics-dimension-repository_network_root_nwo | JSQLParser/JSqlParser |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width