Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename a non exist table report wrong error message #29893

Closed
xiongjiwei opened this issue Nov 18, 2021 · 3 comments · Fixed by #32170
Closed

Rename a non exist table report wrong error message #29893

xiongjiwei opened this issue Nov 18, 2021 · 3 comments · Fixed by #32170
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@xiongjiwei
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create database db;
use db;
rename table tb1 to tb2;

2. What did you expect to see? (Required)

MySQL 5.7
ERROR 1017 (HY000): Can't find file: './db_optimistic/tb1.frm' (errno: 2 - No such file or directory)
MySQL 8.0
ERROR 1146 (42S02): Table 'db_optimistic.tb1' doesn't exist

3. What did you see instead (Required)

TiDB 4.0.11
ERROR 1017 (HY000): Can't find file: 'db_optimistic' (errno: {%!d(string=tb1) %!d(string=tb1)} - %!s(MISSING))
@xiongjiwei xiongjiwei added type/bug The issue is confirmed as a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. sig/sql-infra SIG: SQL Infra severity/minor labels Nov 18, 2021
@yashpadwalkar
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create database db;
use db;
rename table tb1 to tb2;

2. What did you expect to see? (Required)

MySQL 5.7
ERROR 1017 (HY000): Can't find file: './db_optimistic/tb1.frm' (errno: 2 - No such file or directory)
MySQL 8.0
ERROR 1146 (42S02): Table 'db_optimistic.tb1' doesn't exist

3. What did you see instead (Required)

TiDB 4.0.11
ERROR 1017 (HY000): Can't find file: 'db_optimistic' (errno: {%!d(string=tb1) %!d(string=tb1)} - %!s(MISSING))
  1. Minimal reproduce step
    ALTER TABLE table_name
    RENAME TO new_table_name;

@Abhilash-03
Copy link

alter table tb1 rename to tb2;

@hawkingrei hawkingrei added the affects-5.4 This bug affects the 5.4.x(LTS) versions. label Feb 7, 2022
@fanrenhoo
Copy link
Contributor

fanrenhoo commented Feb 8, 2022

/assign [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
6 participants