Title: Invalid SQL syntax accepted: VARCHAR(X) · Issue #671 · phpmyadmin/sql-parser · GitHub
Open Graph Title: Invalid SQL syntax accepted: VARCHAR(X) · Issue #671 · phpmyadmin/sql-parser
X Title: Invalid SQL syntax accepted: VARCHAR(X) · Issue #671 · phpmyadmin/sql-parser
Description: For the following code: ALTER TABLE temp_users ADD COLUMN phone VARCHAR(X) NULL; I expected the SQL do not pass syntax check: Current implementation does pass the SQL syntax check.
Open Graph Description: For the following code: ALTER TABLE temp_users ADD COLUMN phone VARCHAR(X) NULL; I expected the SQL do not pass syntax check: Current implementation does pass the SQL syntax check.
X Description: For the following code: ALTER TABLE temp_users ADD COLUMN phone VARCHAR(X) NULL; I expected the SQL do not pass syntax check: Current implementation does pass the SQL syntax check.
Opengraph URL: https://github.com/phpmyadmin/sql-parser/issues/671
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid SQL syntax accepted: VARCHAR(X)","articleBody":"For the following code:\n`ALTER TABLE temp_users ADD COLUMN phone VARCHAR(X) NULL;`\n\nI expected the SQL do **not pass** syntax check:\n\nCurrent implementation does pass the SQL syntax check.\n","author":{"url":"https://github.com/pszalko","@type":"Person","name":"pszalko"},"datePublished":"2026-09-30T09:34:13Z","url":"https://github.com/phpmyadmin/sql-parser/issues/671"}
| 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:d7eb4359-36b7-3dba-63c5-af4b200e46a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C23A:12379F:17F872:203449:6B0436F2 |
| html-safe-nonce | ca49edf4b5b8a625e96a488f013fb4d8b3ecc9aba64359ba0cb8f6741e46480a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjNBOjEyMzc5RjoxN0Y4NzI6MjAzNDQ5OjZCMDQzNkYyIiwidmlzaXRvcl9pZCI6IjI4NzU4ODg5MDc1MzM0MzI1NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9ef6bc80eec691f0d922d5fa32a6f09edaada2b00e156417000288f3a68e67f5 |
| hovercard-subject-tag | issue:5644339731 |
| 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/phpmyadmin/sql-parser/671/issue_layout |
| twitter:image | https://opengraph.githubassets.com/733774f94ed02c382db30dea88f01c4a7fe79d52367a70d6049b3887ffee71c2/phpmyadmin/sql-parser/issues/671 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/733774f94ed02c382db30dea88f01c4a7fe79d52367a70d6049b3887ffee71c2/phpmyadmin/sql-parser/issues/671 |
| og:image:alt | For the following code: ALTER TABLE temp_users ADD COLUMN phone VARCHAR(X) NULL; I expected the SQL do not pass syntax check: Current implementation does pass the SQL syntax check. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pszalko |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/phpmyadmin/sql-parser git https://github.com/phpmyadmin/sql-parser.git |
| octolytics-dimension-user_id | 1351977 |
| octolytics-dimension-user_login | phpmyadmin |
| octolytics-dimension-repository_id | 36256604 |
| octolytics-dimension-repository_nwo | phpmyadmin/sql-parser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36256604 |
| octolytics-dimension-repository_network_root_nwo | phpmyadmin/sql-parser |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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