SQL alias rule is different with mysql 5.7 #30841
Labels
affects-5.2
This bug affects 5.2.x versions.
affects-6.0
severity/minor
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
in tidb 5.2.1 (linux)
when 'b' is table alias in from clause ,we use 'B' in group by clause and 'b' in order by clause, tidb popup error.
when 'b' is table alias in from clause ,we use 'B' in group by clause and 'B' in order by clause, sql is working.
in mysql 5.7.23(linux), sql is working in both situation, please help to check,thx.
2. What did you expect to see? (Required)
when 'b' is table alias in from clause ,we use 'B' in group by clause and 'b' in order by clause, sql working as mysql.
3. What did you see instead (Required)
when 'b' is table alias in from clause ,we use 'B' in group by clause and 'b' in order by clause, tidb popup error.
4. What is your TiDB version? (Required)
5.2.1
The text was updated successfully, but these errors were encountered: