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

UCP: unexpected error happened when select dbName.viewName.col from another database #15611

Closed
XuHuaiyu opened this issue Mar 24, 2020 · 5 comments · Fixed by #15621
Closed
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@XuHuaiyu
Copy link
Contributor

XuHuaiyu commented Mar 24, 2020

Description

1. What did you do?

use test;
create table t(a int);
use mysql;
create view v as select * from test.t;
use test;
select mysql.v.a from mysql.v;

2. What did you expect to see?

no error happens

3. What did you see instead?

ERROR 1054 (42S22): Unknown column 'mysql.v.a' in 'field list'

Score

  • 50

Mentor(s)

Contact the mentors: #tidb-challenge-program channel in TiDB Community Slack Workspace

Recommended Skills

  • Golang Programming

Learning Materials

@XuHuaiyu
Copy link
Contributor Author

We can fix this by changing this line to DBName: dbName

@XuHuaiyu XuHuaiyu added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Mar 24, 2020
@XuHuaiyu XuHuaiyu changed the title unexpected error happened when select dbName.viewName.col from another database UCP: unexpected error happened when select dbName.viewName.col from another database Mar 24, 2020
@francis0407 francis0407 added the sig/planner SIG: Planner label Mar 24, 2020
longfangsong added a commit to longfangsong/tidb that referenced this issue Mar 24, 2020
@hsqlu
Copy link
Contributor

hsqlu commented Mar 29, 2020

/pick-up-challenge

@sre-bot
Copy link
Contributor

sre-bot commented Mar 29, 2020

@hsqlu pick up issue success

@hsqlu
Copy link
Contributor

hsqlu commented Mar 30, 2020

/give-up-challenge

@sre-bot
Copy link
Contributor

sre-bot commented Mar 30, 2020

@hsqlu give up issue success

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. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants