Bug #100164 | resolve problem in group by and order by field with 2 tables in 2 schema | ||
---|---|---|---|
Submitted: | 9 Jul 2020 1:45 | Modified: | 9 Jul 2020 12:21 |
Reporter: | SUMMER SHENG | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0.20 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[9 Jul 2020 1:45]
SUMMER SHENG
[9 Jul 2020 12:09]
MySQL Verification Team
Hi Mr. SHENG, Thank you for your bug report. However, this is not a bug. Simply, if you are using `test1` schema and not fully qualified names in the query, and since only_full_group_by is set, then this is expected behaviour. Not a bug.
[9 Jul 2020 12:21]
SUMMER SHENG
I didn't mean that the error is a bug. I was meaning that the two query I provide should have the same result. It seems that in Query 1, t1.b is resolved to test1.t1.b; in Query 2, it is resolved to test2.t1.b This is not as expected, I think
[9 Jul 2020 13:19]
MySQL Verification Team
It is actually a correct and expected behaviour, as described in our Reference Manual.