Skip to content

Failed to parse Mysql CHARACTER SET with COLLATE clause #1544

Closed

Description

@miniliuke

When using SQLParser, the following ALTER TABLE statement fails to parse:
ALTER TABLE test.test MODIFY COLUMN v varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL AFTER id,DROP PRIMARY KEY,ADD PRIMARY KEY (id, v) USING BTREE
The issue seems to be related to the presence of the COLLATE latin1_swedish_ci clause. If the COLLATE clause is removed, the statement parses successfully.

Activity

  1. LucaCappelletti94 commented on Sep 23, 2026

    @LucaCappelletti94
    Contributor

    Completed by #1731.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions