-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Error 1054: Unknown column 'a' in 'field list' #8190
Comments
/assign |
Confirming that this issue can still be reproduced in master: mysql> SELECT tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v4.0.0-beta.2-771-gca41972fb
Edition: Community
Git Commit Hash: ca41972fbac068c8a5de107d9075f09ac68842ac
Git Branch: master
UTC Build Time: 2020-07-14 02:41:21
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
1 row in set (0.00 sec)
mysql> select 1 as a,(select a union select a);
ERROR 1054 (42S22): Unknown column 'a' in 'field list' |
I found that whether
MySQL correlated subquery specification seems not mention the difference of the two cases. |
|
If we want to fix it now.
We will build plan like |
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
tidb-server -V
or runselect tidb_version();
on TiDB)?SIG slack channel
#sig-exec
Score
300
Mentor
The text was updated successfully, but these errors were encountered: