You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first fails at index_name; the second fails at fk_parent_idx. Both statements executed successfully on mysql:8.4 (server 8.4.11), and SHOW CREATE TABLE confirmed the resulting UNIQUE/FK metadata. A fix should keep the constraint symbol and optional index name as distinct fields in the public model.
OpenAI Codex was used to rerun the parser/server comparison; the result was manually checked against the MySQL 8.4 CREATE TABLE grammar.
Activity
manticore-projects commentedon Jun 19, 2022
Greetings,
thank your for the report. It contains all needed information and is a fine example, how an error report should look alike.
That said: those MySQL specific syntax are not supported.
The support syntax are shown here: http://217.160.215.75:8080/jsqlformatter/syntax.html
minleejae commentedon Sep 2, 2026
This remains reproducible on
5.4-SNAPSHOTat9a32ff568f580178d9a27b101596aa43eb45d0b7. I also validated the examples against MySQL 8.4.11.These server-valid forms still throw
ParseExceptionat the separate index name:The first fails at
index_name; the second fails atfk_parent_idx. Both statements executed successfully onmysql:8.4(server 8.4.11), andSHOW CREATE TABLEconfirmed the resulting UNIQUE/FK metadata. A fix should keep the constraint symbol and optional index name as distinct fields in the public model.OpenAI Codex was used to rerun the parser/server comparison; the result was manually checked against the MySQL 8.4
CREATE TABLEgrammar.