René's URL Explorer Experiment


Title: MySQL bitwise |, &, and shifts still share one parser precedence tier · Issue #2834 · JSQLParser/JSqlParser · GitHub

Open Graph Title: MySQL bitwise |, &, and shifts still share one parser precedence tier · Issue #2834 · JSQLParser/JSqlParser

X Title: MySQL bitwise |, &, and shifts still share one parser precedence tier · Issue #2834 · 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/2834

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 bitwise |, &, and shifts still share one parser precedence tier","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 String shape(Expression e) {\n    if (e instanceof BinaryExpression b)\n      return \"(\" + shape(b.getLeftExpression()) + \" \" + e.getClass().getSimpleName()\n          + \" \" + shape(b.getRightExpression()) + \")\";\n    return e.toString();\n  }\n  public static void main(String[] args) throws Exception {\n    for (String x : new String[]{\"1 | 2 & 4\", \"3 & 1 \u003c\u003c 2\"}) {\n      Select s = (Select) CCJSqlParserUtil.parse(\"SELECT \" + x + \" AS x\",\n          p -> p.withDialect(Dialect.MYSQL));\n      System.out.println(x + \" => \" + shape(s.getPlainSelect().getSelectItem(0).getExpression()));\n    }\n  }\n}\n```\n\nObserved on 2026-10-19: `1 | 2 & 4` becomes `(1 | 2) & 4`, and `3 & 1 \u003c\u003c 2` becomes `(3 & 1) \u003c\u003c 2`. [MySQL's precedence table](https://dev.mysql.com/doc/refman/8.4/en/operator-precedence.html) requires `1 | (2 & 4)` and `3 & (1 \u003c\u003c 2)`. These paired groupings evaluate to `0` versus `1`, and `4` versus `0`, respectively.\n\nThe [arithmetic parser loop](https://github.com/JSQLParser/JSqlParser/blob/f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#L748-L780) assigns precedence 4 to `|`, `&`, `\u003c\u003c`, and `>>` under the MySQL dialect. [PR #2833](https://github.com/JSQLParser/JSqlParser/pull/2833) corrected their tier relative to addition and explicitly notes that MySQL separates these bitwise operators. This issue tracks that remaining MySQL-specific grouping difference.\n","author":{"url":"https://github.com/pbottine","@type":"Person","name":"pbottine"},"datePublished":"2026-10-20T00:50:37Z","url":"https://github.com/JSQLParser/JSqlParser/issues/2834"}

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:05559b83-e801-7d7b-6421-cab6a13e6934
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA1D2:27DE6D:D08641:122EC2D:6B043DCE
html-safe-nonce439d8e99e06402d012ca311c4f8bc9970693aa8caac45092d780e5c736a0556e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUQyOjI3REU2RDpEMDg2NDE6MTIyRUMyRDo2QjA0M0RDRSIsInZpc2l0b3JfaWQiOiIyNjUwNDg2Nzg2MTYxMzkzMTAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfedf994515eb00790bfab85e70eb507eab7b493675a23df3cd86c40ebacb4175
hovercard-subject-tagissue:5933969578
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/2834/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4612657526ecd9495f812afec7dc2780cc4112c985229de8abaa9d76d5aeec1e/JSQLParser/JSqlParser/issues/2834
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4612657526ecd9495f812afec7dc2780cc4112c985229de8abaa9d76d5aeec1e/JSQLParser/JSqlParser/issues/2834
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/2834#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJSQLParser%2FJSqlParser%2Fissues%2F2834
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%2F2834
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/2834
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2834
Reloadhttps://github.com/JSQLParser/JSqlParser/issues/2834
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/2834
New issuehttps://github.com/login?return_to=https://github.com/JSQLParser/JSqlParser/issues/2834
MySQL bitwise |, &, and shifts still share one parser precedence tierhttps://github.com/JSQLParser/JSqlParser/issues/2834#top
https://github.com/pbottine
pbottinehttps://github.com/pbottine
on Oct 20, 2026https://github.com/JSQLParser/JSqlParser/issues/2834#issue-5933969578
MySQL's precedence tablehttps://dev.mysql.com/doc/refman/8.4/en/operator-precedence.html
arithmetic parser loophttps://github.com/JSQLParser/JSqlParser/blob/f6ac2571e6e9777d6a5ee942a4ea53cd91153e4d/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#L748-L780
PR #2833https://github.com/JSQLParser/JSqlParser/pull/2833
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/2834#event-33930616870
minleejaehttps://github.com/minleejae
on Oct 22, 2026https://github.com/JSQLParser/JSqlParser/issues/2834#event-33936479525
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/2834
Sign in to commenthttps://github.com/login?return_to=https://github.com/JSQLParser/JSqlParser/issues/2834
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.