René's URL Explorer Experiment


Title: MySQL dialect gives logical XOR the same tier as OR · Issue #2835 · JSQLParser/JSqlParser · GitHub

Open Graph Title: MySQL dialect gives logical XOR the same tier as OR · Issue #2835 · JSQLParser/JSqlParser

X Title: MySQL dialect gives logical XOR the same tier as OR · Issue #2835 · JSQLParser/JSqlParser

Description: Reproduction At current master commit f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d, compile and run this with the built JAR on the classpath: import net.sf.jsqlparser.expression.BinaryExpression; import net.sf.jsqlparser.expression.Expressio...

Open Graph Description: Reproduction At current master commit f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d, compile and run this with the built JAR on the classpath: import net.sf.jsqlparser.expression.BinaryExpression; impor...

X Description: Reproduction At current master commit f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d, compile and run this with the built JAR on the classpath: import net.sf.jsqlparser.expression.BinaryExpression; impor...

Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/2835

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MySQL dialect gives logical XOR the same tier as OR","articleBody":"## Reproduction\n\nAt current `master` commit `f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d`, compile and run this with the built JAR on the classpath:\n\n```java\nimport net.sf.jsqlparser.expression.BinaryExpression;\nimport net.sf.jsqlparser.expression.Expression;\nimport net.sf.jsqlparser.parser.AbstractJSqlParser.Dialect;\nimport net.sf.jsqlparser.parser.CCJSqlParserUtil;\nimport net.sf.jsqlparser.statement.select.Select;\npublic class Repro {\n  static void show(Expression e, String prefix) {\n    System.out.println(prefix + e.getClass().getSimpleName() + \": \" + e);\n    if (e instanceof BinaryExpression b) {\n      show(b.getLeftExpression(), prefix + \"  L \");\n      show(b.getRightExpression(), prefix + \"  R \");\n    }\n  }\n  public static void main(String[] args) throws Exception {\n    for (String x : new String[]{\"1 OR 1 XOR 1\", \"1 OR (1 XOR 1)\"}) {\n      Select s = (Select) CCJSqlParserUtil.parse(\"SELECT \" + x + \" AS x\",\n          p -> p.withDialect(Dialect.MYSQL));\n      System.out.println(\"INPUT \" + x);\n      show(s.getPlainSelect().getSelectItem(0).getExpression(), \"\");\n    }\n  }\n}\n```\n\nObserved on 2026-10-19: unparenthesized input has a `XorExpression` root with `OrExpression(1, 1)` on the left. The parenthesized control has an `OrExpression` root. [MySQL puts logical XOR above OR](https://dev.mysql.com/doc/refman/8.4/en/operator-precedence.html), so the unparenthesized input should also have an OR root: `1 OR (1 XOR 1)` evaluates to true, whereas `(1 OR 1) XOR 1` evaluates to false.\n\nThe [boolean parser loop](https://github.com/JSQLParser/JSqlParser/blob/f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#L689-L728) comments that XOR should have precedence 3 and OR precedence 2, but assigns both the value 2. The resulting AST groups them left-to-right. [#1070](https://github.com/JSQLParser/JSqlParser/issues/1070) concerns OR/AND; [#2834](https://github.com/JSQLParser/JSqlParser/issues/2834) concerns a separate arithmetic/bitwise parser loop.\n","author":{"url":"https://github.com/pbottine","@type":"Person","name":"pbottine"},"datePublished":"2026-10-20T01:12:23Z","url":"https://github.com/JSQLParser/JSqlParser/issues/2835"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8d365325-88c3-c240-ee2f-5049d20eb526
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDF8:12691F:55B4A1:7350BA:6B043DCA
html-safe-noncec6b81ac8657324ea13493392ec3852ad5c0809e9a1b5888c904a67b557d8bbd7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREY4OjEyNjkxRjo1NUI0QTE6NzM1MEJBOjZCMDQzRENBIiwidmlzaXRvcl9pZCI6Ijg3NzMwMjA1NTg0NzM1NzU4ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2b64772fd07a585841e93dbfea095723d0aaafa72557c3a4eca6bdfdbf5a2409
hovercard-subject-tagissue:5934165681
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSQLParser/JSqlParser/2835/issue_layout
twitter:imagehttps://opengraph.githubassets.com/be81d69fb19304e189505bb2f44de24fa2b09bfa6e7a09690659b82169cb5c18/JSQLParser/JSqlParser/issues/2835
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/be81d69fb19304e189505bb2f44de24fa2b09bfa6e7a09690659b82169cb5c18/JSQLParser/JSqlParser/issues/2835
og:image:altReproduction At current master commit f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d, compile and run this with the built JAR on the classpath: import net.sf.jsqlparser.expression.BinaryExpression; impor...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepbottine
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JSQLParser/JSqlParser/issues/2835#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fissues%2F2835
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%2Fissues%2F2835
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JSQLParser%2FJSqlParser
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2835
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2835
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2835
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
https://github.com/JSQLParser/JSqlParser
New issuehttps://github.com/login?return_to=https://github.com/JSQLParser/JSqlParser/issues/2835
New issuehttps://github.com/login?return_to=https://github.com/JSQLParser/JSqlParser/issues/2835
MySQL dialect gives logical XOR the same tier as ORhttps://github.com/JSQLParser/JSqlParser/issues/2835#top
https://github.com/pbottine
pbottinehttps://github.com/pbottine
on Oct 20, 2026https://github.com/JSQLParser/JSqlParser/issues/2835#issue-5934165681
MySQL puts logical XOR above ORhttps://dev.mysql.com/doc/refman/8.4/en/operator-precedence.html
boolean parser loophttps://github.com/JSQLParser/JSqlParser/blob/f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#L689-L728
#1070https://github.com/JSQLParser/JSqlParser/issues/1070
#2834https://github.com/JSQLParser/JSqlParser/issues/2834
manticore-projectshttps://github.com/manticore-projects
completedhttps://github.com/JSQLParser/JSqlParser/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
bfafeaahttps://github.com/JSQLParser/JSqlParser/commit/bfafeaaf9799e15f296bff862e9f3e2b26b48c63
on Oct 22, 2026https://github.com/JSQLParser/JSqlParser/issues/2835#event-33930618228
minleejaehttps://github.com/minleejae
on Oct 22, 2026https://github.com/JSQLParser/JSqlParser/issues/2835#event-33936479693
Match MySQL operator precedence for XOR and bitwise operators (JSQLPa…https://github.com/minleejae/JSqlParser/commit/bfafeaaf9799e15f296bff862e9f3e2b26b48c63
JSQLPa…https://github.com/JSQLParser/JSqlParser/pull/2838
https://docs.github.com/articles/closing-issues-via-commit-messages
bfafeaahttps://github.com/minleejae/JSqlParser/commit/bfafeaaf9799e15f296bff862e9f3e2b26b48c63
Sign up for freehttps://github.com/signup?return_to=https://github.com/JSQLParser/JSqlParser/issues/2835
Sign in to commenthttps://github.com/login?return_to=https://github.com/JSQLParser/JSqlParser/issues/2835
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.