Title: DISABLE Keyword causing parser if used as column name · Issue #945 · JSQLParser/JSqlParser · GitHub
Open Graph Title: DISABLE Keyword causing parser if used as column name · Issue #945 · JSQLParser/JSqlParser
X Title: DISABLE Keyword causing parser if used as column name · Issue #945 · JSQLParser/JSqlParser
Description: Bug 1 I reported a similar issue with the CHANGE keyword. We have a legacy app that uses the Mysql keyword "DISABLE" as a column name. Since it's legacy, we can't easily change the column name, and it is causing the sql parser to break. ...
Open Graph Description: Bug 1 I reported a similar issue with the CHANGE keyword. We have a legacy app that uses the Mysql keyword "DISABLE" as a column name. Since it's legacy, we can't easily change the column name, and...
X Description: Bug 1 I reported a similar issue with the CHANGE keyword. We have a legacy app that uses the Mysql keyword "DISABLE" as a column name. Since it's legacy, we can't easily change th...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/945
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DISABLE Keyword causing parser if used as column name","articleBody":"Bug 1\r\n\r\nI reported a similar issue with the CHANGE keyword. We have a legacy app that uses the Mysql keyword \"DISABLE\" as a column name. Since it's legacy, we can't easily change the column name, and it is causing the sql parser to break. \r\n\r\n\r\nTo Reproduce\r\nSteps to reproduce the behavior:\r\n2. Parsing \"INSERT INTO SOMESCHEMA.TEST (DISABLE, TESTCOLUMN) VALUES(1, 1)\" SQL using JSqlParser throws JsqlParserException.\r\n\r\nCaused by: net.sf.jsqlparser.JSQLParserException at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:51) at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:40) ... 53 more Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: “DISABLE” “DISABLE” at line 1, column 15. Was expecting one of: “(” “ACTION” “ANY”...\r\n\r\nConfiguration\r\n\r\nMysql\r\nJava 8\r\nJSqlParser 2.1\r\n\r\nBug 2\r\n\r\nDouble quotes seem to not get parsed correctly\r\n\r\n1. Parsing SELECT\r\n(IFNULL(DOCUMENT_TABLE.TITLE,\"\") || \", \" || IFNULL(WF.DISPLAY_NAME,\"\") || IFNULL(\" # \" || DOCUMENT_TABLE.SOME$NUMBER,\"\") || IFNULL(\" rev. \" || DOCUMENT_TABLE.REVISION,\"\")) AS REQUIRMENT_DESCRIPTION\r\n\r\nFROM\r\nDOC.DOC_DOCUMENT AS DOCUMENT_TABLE\r\nLEFT JOIN ENGINE.PHASE_SETTINGS AS PHASE ON (DOCUMENT_TABLE.SOME$CURRENT_PHASE = PHASE.PHASE_ID)\r\nLEFT JOIN ENGINE.WF_SETTINGS AS WF ON (PHASE.WORKFLOW_ID = WF.WORKFLOW_ID)\r\n\r\nWHERE\r\nDOCUMENT_TABLE.DOC_ID = 2113978200\r\n\r\nCauses Jsqlparser exception on the quotation marks simliar to above statement.\r\n\r\n","author":{"url":"https://github.com/naumaan123","@type":"Person","name":"naumaan123"},"datePublished":"2020-02-07T17:54:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/945/JSqlParser/issues/945"}
| 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:c12bbb6d-22ca-1e5c-f429-44508afd8816 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A73A:D6AAC:16DF2A9:1D16401:697F2BCB |
| html-safe-nonce | b2932c4d5763c764084000059006424f8b805ba5b9dbe52b65a5b273165ef2b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzNBOkQ2QUFDOjE2REYyQTk6MUQxNjQwMTo2OTdGMkJDQiIsInZpc2l0b3JfaWQiOiIxMjM2OTg3MTIwMzA0NzI5MDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 74f9c89b44c787e0b7d45b97dde1e6459b8d4cb56f08018a154dac053f8619a4 |
| hovercard-subject-tag | issue:561785327 |
| 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/945/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f2d517ee722bb661edbdf962ffccea6db6d777c75cf6e1e20414899c3a2828e/JSQLParser/JSqlParser/issues/945 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f2d517ee722bb661edbdf962ffccea6db6d777c75cf6e1e20414899c3a2828e/JSQLParser/JSqlParser/issues/945 |
| og:image:alt | Bug 1 I reported a similar issue with the CHANGE keyword. We have a legacy app that uses the Mysql keyword "DISABLE" as a column name. Since it's legacy, we can't easily change the column name, and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naumaan123 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width