Title: Alter - Drop FK and PK not working · Issue #1129 · JSQLParser/JSqlParser · GitHub
Open Graph Title: Alter - Drop FK and PK not working · Issue #1129 · JSQLParser/JSqlParser
X Title: Alter - Drop FK and PK not working · Issue #1129 · JSQLParser/JSqlParser
Description: Alter - Drop FK and PK not working Sample Query - ALTER TABLE child_table1 DROP FOREIGN KEY abc_column Code: CCJSqlParser parser = CCJSqlParserUtil.newParser(sql); Alter stmt = parser.AlterTable(); got below exception while trying to par...
Open Graph Description: Alter - Drop FK and PK not working Sample Query - ALTER TABLE child_table1 DROP FOREIGN KEY abc_column Code: CCJSqlParser parser = CCJSqlParserUtil.newParser(sql); Alter stmt = parser.AlterTable();...
X Description: Alter - Drop FK and PK not working Sample Query - ALTER TABLE child_table1 DROP FOREIGN KEY abc_column Code: CCJSqlParser parser = CCJSqlParserUtil.newParser(sql); Alter stmt = parser.AlterTable();...
Opengraph URL: https://github.com/JSQLParser/JSqlParser/issues/1129
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Alter - Drop FK and PK not working","articleBody":"**Alter - Drop FK and PK not working**\r\n\r\nSample Query - ALTER TABLE child_table1 DROP FOREIGN KEY abc_column\r\n\r\nCode:\r\n CCJSqlParser parser = CCJSqlParserUtil.newParser(sql);\r\nAlter stmt = parser.AlterTable();\r\n\r\ngot below exception while trying to parse above query to drop FK or PK...\r\n\r\nCaused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: \"FOREIGN\" \"FOREIGN\"\r\n at line 1, column 24.\r\n\r\nWas expecting one of:\r\n\r\n \"COLUMN\"\r\n \"CONSTRAINT\"\r\n \"INDEX\"\r\n \u003cS_IDENTIFIER>\r\n \u003cS_QUOTED_IDENTIFIER>\r\n\r\n\tat net.sf.jsqlparser.parser.CCJSqlParser.generateParseException(CCJSqlParser.java:26538)\r\n\tat net.sf.jsqlparser.parser.CCJSqlParser.jj_consume_token(CCJSqlParser.java:26377)\r\n\tat net.sf.jsqlparser.parser.CCJSqlParser.AlterExpression(CCJSqlParser.java:16472)\r\n\tat net.sf.jsqlparser.parser.CCJSqlParser.AlterTable(CCJSqlParser.java:16563)\r\n\r\n\r\n**System**\r\n - Database you are using - Mysql 5.7\r\n- Java Version - 1.8\r\n- JSqlParser version - 4.0\r\n- \r\nPlease address this issue asap\r\n","author":{"url":"https://github.com/syed72","@type":"Person","name":"syed72"},"datePublished":"2021-03-04T13:04:30Z","url":"https://github.com/JSQLParser/JSqlParser/issues/1129"}
| 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:3a3c5ee3-7211-f7f3-9def-1c26db84fc6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D45C:D1D86:BD445C:100C993:6B0489C2 |
| html-safe-nonce | 0737917e8b60841d4ffbd9e9377cfa6243870fb1bb9e5980ea307e5696543011 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVDOkQxRDg2OkJENDQ1QzoxMDBDOTkzOjZCMDQ4OUMyIiwidmlzaXRvcl9pZCI6Ijc5MzE5NjE1ODU2MjE1Njc5MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 238c4aa04b32039dbd03183b5e2fc23ed476d1be961bc93e50f0be20e47e22ba |
| hovercard-subject-tag | issue:822114270 |
| 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/1129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9c1782725d8ede258e20c7cbeaaaa8824284986044b827512ffc974f599cb905/JSQLParser/JSqlParser/issues/1129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9c1782725d8ede258e20c7cbeaaaa8824284986044b827512ffc974f599cb905/JSQLParser/JSqlParser/issues/1129 |
| og:image:alt | Alter - Drop FK and PK not working Sample Query - ALTER TABLE child_table1 DROP FOREIGN KEY abc_column Code: CCJSqlParser parser = CCJSqlParserUtil.newParser(sql); Alter stmt = parser.AlterTable();... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | syed72 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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