Class AmbiguousColumnException

All Implemented Interfaces:
Serializable

public class AmbiguousColumnException extends RuntimeException
A bare column name carried by both sides of an ON-joined relation — live's "SQL compilation error: ambiguous column name 'T'". The join FORM is the rule (measured cell by cell): an ON join makes every same-named bare reference ambiguous, inner and left alike, while a USING or NATURAL join resolves EVERY same-named pair to the LEFT side — keys and non-keys both — which is why SELECT d FROM a JOIN b USING (k) answers a.d where the ON spelling of the same join is rejected. Typed so the lenient catch-and-retry fallbacks (the expression visitor's multi-table probe, WhereOperator's strategy chain) can rethrow it: ambiguity is definitive.
See Also:
  • Constructor Details

    • AmbiguousColumnException

      public AmbiguousColumnException(String columnName)
      Builds the SQL compilation error for a bare column name both sides of an ON join carry.
      Parameters:
      columnName - the ambiguous bare column name, quoted verbatim in the error message