Bug #117670 | Unknown column '?' in 'group statement' | ||
---|---|---|---|
Submitted: | 12 Mar 3:46 | Modified: | 12 Mar 13:48 |
Reporter: | kim kyoung youn | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.34, 8.0.41 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | Optimizer, regression |
[12 Mar 3:46]
kim kyoung youn
[12 Mar 6:15]
MySQL Verification Team
Hello Kim kyoung, Thank you for the report and feedback. regards, Umesh
[12 Mar 13:48]
Roy Lyseng
Posted by developer: The query has an error and is therefore rejected. The clause "group by a.sdate" indicates that the table "a" has a column "sdate". But there is no such column. Instead, this expression is matched against the alias "sdate". However, it should only be possible to match against this alias when no prefix is given. Before MySQL 8.0.34, "a.sdate" was erroneously resolved as the alias "sdate". The problem was corrected in 8.0.34. The proper fix is probably to replace "a.sdate" with "sdate" in the query.