Skip to content

[Bug]: alter table change column name: column name does not support Chinese, space, special character with `` #11269

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93): 3197c5a41991f2ed1db30e04584461f5ddfb57ea
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

image

Steps to Reproduce

-- column name test: with `` and chinese character
drop table if exists name01;
create table name01 (col1 int, col2 decimal);
insert into name01 values (1, 378292);
insert into name01 values (2, 3289.111111);
alter table name01 change column col1 `数据库管理系统数据库操作系统数据库系统数据库` int;
show create table name01;
drop table name01;

-- column name test: with `` and space
drop table if exists name02;
create table name02 (col1 int, col2 decimal);
insert into name02 values (1, 378292);
insert into name02 values (2, 3289.111111);
alter table name02 change column col1  `cwhueh   3u2j4kfker` int;
show create table name02;
drop table name02;

-- column name test: with `` and special character
drop table if exists name03;
create table name03 (col1 int, col2 decimal);
insert into name03 values (1, 378292);
insert into name03 values (2, 3289.111111);
alter table name03 change column col1 `RAVHJBWUIHNJCDW****&&*((()(*&^&^%^^&^*&` int;
show create table name03;
drop table name03;

Additional information

No response

Activity

  1. added
    kind/bug
    on Aug 17, 2023
  2. added this to the 1.0.0 milestone on Aug 17, 2023
  3. qingxinhome commented on Aug 18, 2023

    @qingxinhome
    Contributor

    The issue has been resolved, please verify and test @Ariznawlll @daviszhen @lacrimosaprinz

  4. Ariznawlll commented on Aug 18, 2023

    @Ariznawlll
    CollaboratorAuthor
    image image image

    Verified!

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

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions