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

Not unique table/alias runs normally #24550

Open
xiongjiwei opened this issue May 11, 2021 · 0 comments · May be fixed by #34887 or #35080
Open

Not unique table/alias runs normally #24550

xiongjiwei opened this issue May 11, 2021 · 0 comments · May be fixed by #34887 or #35080
Assignees
Labels
severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@xiongjiwei
Copy link
Contributor

xiongjiwei commented May 11, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

same with #24563

1. Minimal reproduce step (Required)

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

use test;
create table t(a int);
mysql> select 2 from test.t, t;
ERROR 1066 (42000): Not unique table/alias: 't'

3. What did you see instead (Required)

use test;
create table t(a int);
mysql> select 2 from test.t, t;
Empty set (0.01 sec)

4. What is your TiDB version? (Required)

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