Bug #113887 | MySQL fails to execute query if a subquery refer to a column of parent table | ||
---|---|---|---|
Submitted: | 4 Feb 2:12 | Modified: | 14 Jun 21:31 |
Reporter: | Diancheng Wang | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Feb 2:12]
Diancheng Wang
[5 Feb 11:19]
MySQL Verification Team
Hi Mr. Wang, Thank you for your bug report. We managed to reproduce your bug report in 8.0.36 and 8.3.0: ERROR 1247 (42S22) at line 7: Reference 'c1' not supported (forward reference in item list) Since a difference is only in LIMIT, this is now a verified bug report. Thank you for your contribution.
[14 Jun 21:31]
Jon Stephens
Documented fix in the MySQL 9.0.0 changelog as follows: The server rejected a query containing a subquery which referred to a column of the parent table. Closed.
[17 Jun 9:41]
MySQL Verification Team
Thank you, Jon.