Skip to content

support variable of default_collation_for_utf8 #63328

@PetterZhukov

Description

@PetterZhukov

Feature Request

My application originally used a MySQL database. When creating tables with the utf8 charset, the expected collation was utf8_general_ci.

Since the default collation for utf8 in TiDB is utf8_bin, I need to modify either the business logic or the CREATE TABLE statements.

However, because a large number of applications are involved, modifying the business logic or the CREATE TABLE statements is difficult to execute.

Therefore, I hope to add a system variable to set the default collation for the utf8 charset.

TiDB already supports default_collation_for_utf8mb4, so the same logic can be implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributionThis PR is from a community contributor.first-time-contributorIndicates that the PR was contributed by an external member and is a first-time contributor.type/feature-requestCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions