Title: Logical Operator Precedence (QUESTION) · Issue #1070 · JSQLParser/JSqlParser · GitHub
Open Graph Title: Logical Operator Precedence (QUESTION) · Issue #1070 · JSQLParser/JSqlParser
X Title: Logical Operator Precedence (QUESTION) · Issue #1070 · JSQLParser/JSqlParser
Description: Describe the question I have a doubt about operator precedence Indeed the following code CCJSqlParserUtil.parseCondExpression("TYPE=1 or TYPE= 2 and OS=25", false); return OrExpression Shouldn't this be return AndExpression due to the hi...
Open Graph Description: Describe the question I have a doubt about operator precedence Indeed the following code CCJSqlParserUtil.parseCondExpression("TYPE=1 or TYPE= 2 and OS=25", false); return OrExpression Shouldn't th...
X Description: Describe the question I have a doubt about operator precedence Indeed the following code CCJSqlParserUtil.parseCondExpression("TYPE=1 or TYPE= 2 and OS=25", false); return OrExpression Sh...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/1070
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Logical Operator Precedence (QUESTION)","articleBody":"**Describe the question**\r\n\r\nI have a doubt about operator precedence\r\nIndeed the following code\r\n```java\r\nCCJSqlParserUtil.parseCondExpression(\"TYPE=1 or TYPE= 2 and OS=25\", false);\r\n```\r\nreturn OrExpression\r\n\r\nShouldn't this be\r\n\r\nreturn AndExpression due to the higher precedence of And ?\r\n\r\n\r\n**To Reproduce**\r\n\r\nCCJSqlParserUtil.parseCondExpression(\"TYPE=1 or TYPE= 2 and OS=25\", false);\r\n\r\n\r\n\r\n**System**\r\n - Database you are using\r\n- Java Version : >8 \r\n- JSqlParser version : 3.2\r\n","author":{"url":"https://github.com/ebocher","@type":"Person","name":"ebocher"},"datePublished":"2020-11-09T07:06:16Z","url":"https://github.com/JSQLParser/JSqlParser/issues/1070"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:66cf3419-2ab9-0c60-641c-92658fadb9c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEB0:2953C9:D9DF56:1303B36:6B043FF9 |
| html-safe-nonce | d8a68045e590b222b97805686155a3829aff610b7f7430eca0359a3f59c1b77c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUIwOjI5NTNDOTpEOURGNTY6MTMwM0IzNjo2QjA0M0ZGOSIsInZpc2l0b3JfaWQiOiIxNDIxNzM4MzQyNjEzMjcwNTIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5c5b49944fcf4e9be3e9a64df5cd3981b20d26cc0fa17edf7a17d59b6bbfce6b |
| hovercard-subject-tag | issue:738751837 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/JSQLParser/JSqlParser/1070/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e9a6958434b76177361b79a59fd070e37fb21ae4f6a49b7af53024c2d2d2021/JSQLParser/JSqlParser/issues/1070 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e9a6958434b76177361b79a59fd070e37fb21ae4f6a49b7af53024c2d2d2021/JSQLParser/JSqlParser/issues/1070 |
| og:image:alt | Describe the question I have a doubt about operator precedence Indeed the following code CCJSqlParserUtil.parseCondExpression("TYPE=1 or TYPE= 2 and OS=25", false); return OrExpression Shouldn't th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ebocher |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width