Skip to content

[Bug]: After setting case sensitive, create database test, table TT,Tt, create snapshot, drop database test, after restore, the result of show tables is incorrect. #20484

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

2.0-dev

Commit ID

ce18aca

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

企业微信截图_0e6e5b22-33d9-4b3c-ad23-a6c644f46d90

if set global lower_case_table_names = 0, and create database test, create table TT and tt, then restore database test, after restore , the result is not correct.

set global lower_case_table_names = 0;

mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| Tt             |
| tt             |
+----------------+
2 rows in set (0.01 sec)

mysql> create snapshot sp02 for account sys;
Query OK, 0 rows affected (0.05 sec)

mysql> drop database test;
Query OK, 1 row affected (0.09 sec)

mysql> restore account sys from snapshot sp02;
Query OK, 0 rows affected (0.31 sec)

mysql> use test;
Database changed
mysql> show tables;
+----------------+
| Tables_in_test |
+----------------+
| tt             |
+----------------+
1 row in set (0.00 sec)

Expected Behavior

No response

Steps to Reproduce

set global lower_case_table_names = 0;

create database test;
use test;
create table TT(col1 int);
create table Tt(col2 int);
create snapshot sp01 for account sys;

drop database test;
restore account sys from snapshot sp01;
use test;
show tables;

Additional information

No response

Activity

  1. added this to the 2.0.1 milestone on Dec 2, 2024
  2. YANGGMM commented on Dec 3, 2024

    @YANGGMM
    Contributor

    fixed

  3. Ariznawlll commented on Dec 3, 2024

    @Ariznawlll
    CollaboratorAuthor

    testing

  4. Ariznawlll commented on Dec 4, 2024

    @Ariznawlll
    CollaboratorAuthor

    main:
    image

    2.0-dev:
    image
    测试通过

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

Metadata

Metadata

Assignees

Labels

kind/bugphase/testing

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions