go-mysql-server icon indicating copy to clipboard operation
go-mysql-server copied to clipboard

fix handling same colName for existing colName, alias colName and group by colName

Open jennifersp opened this issue 3 years ago • 0 comments

Fixed a case of table has col1 and it's used in the query for referencing this column, and using it for alias name for this column and using it for groupBy column. Example is SELECT col1, col1 AS col1 FROM tab1 GROUP BY col1 Follows MySql ONLY_FULL_GROUP_BY mode

jennifersp avatar Feb 24 '22 19:02 jennifersp