Skip to content

Log warnings on ambiguous name qualification and resolution #4535

@fulghum

Description

@fulghum

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions