phpmyadmin / phpmyadmin/sql-parser

Unrecognized keyword and Unrecognized alter operation

Open
#427 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
485
Forks
119
PR merge metrics
No merged PRs in 30d

Description

CHECK TABLE `table` FOR UPGRADE; will give two errors.

  1. Unrecognized keyword. (near FOR)
  2. Unrecognized keyword. (near UPGRADE)

ALTER TABLE `table` FORCE; will give one error.

  1. Unrecognized alter operation. (near ;)

https://user-images.githubusercontent.com/25424343/222978476-b5959513-be8d-4b49-af58-9b28121505f6.mp4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce CHECK TABLE table FOR UPGRADE and ALTER TABLE table FORCE in the SQL parser, then trace where the reported keyword and alter-operation errors are generated. Done means these valid MySQL statements no longer produce the reported unrecognized-token errors, with regression coverage for both examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
databases, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.