Skip to content

CHARACTER keyword as alias of CHAR type spoils parsing CHARACTER SET utf8 #365

@czoIg

Description

@czoIg

Added in #355 support for CHARACTER as alias of CHAR data type spoils parsing of CHARACTER SET utf8:

CREATE TABLE IF NOT EXISTS example (`type` varchar (255) CHARACTER SET utf8 NOT NULL) DEFAULT CHARACTER SET utf8

which ends up with skipping the encoding in created query and breaks the Issue265Test:

-'CREATE TABLE IF NOT EXISTS example (`type` varchar (255) CHARACTER SET NOT NULL) DEFAULT CHARACTER SET utf8'
+'CREATE TABLE IF NOT EXISTS example (`type` varchar (255) CHARACTER SET utf8 NOT NULL) DEFAULT CHARACTER SET utf8'

I propose to remove the CHARACTER as it is very rare and undocumented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions