dolt
dolt copied to clipboard
Log warnings on ambiguous name qualification and resolution
In certain cases, MySQL allows ambiguity in referenced names and will register a warning for the query instead of throwing an error. GMS should follow this same behavior for consistency.
An example from MySQL's SELECT
Reference Documentation:
If the HAVING clause refers to a column that is ambiguous, a warning occurs. In the following statement, col2 is ambiguous because it is used as both an alias and a column name:
SELECT COUNT(col1) AS col2 FROM t GROUP BY col2 HAVING col2 = 2;
As of 1.35.9
we've fixed the ambiguity but do not log the warning here.