From f2f525cc9936373887e7940bb8728bb01c0dead9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alja=C5=BE=20Mur=20Er=C5=BEen?= Date: Wed, 30 Oct 2024 08:25:42 +0100 Subject: [PATCH] fix --- edb/pgsql/resolver/context.py | 2 +- edb/pgsql/resolver/expr.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edb/pgsql/resolver/context.py b/edb/pgsql/resolver/context.py index 568a8da5436..592cee58cf9 100644 --- a/edb/pgsql/resolver/context.py +++ b/edb/pgsql/resolver/context.py @@ -73,7 +73,7 @@ class Scope: ctes: List[CTE] = field(default_factory=lambda: []) # Pairs of columns of the same name that have been compared in a USING - # clause. This makes unqualified references to their name them un-ambagious. + # clause. This makes unqualified references to their name them un-ambiguous. # The fourth tuple element is the join type. factored_columns: List[Tuple[str, Table, Table, str]] = field( default_factory=lambda: [] diff --git a/edb/pgsql/resolver/expr.py b/edb/pgsql/resolver/expr.py index 9ec931d24fb..600808eb2e1 100644 --- a/edb/pgsql/resolver/expr.py +++ b/edb/pgsql/resolver/expr.py @@ -271,7 +271,7 @@ def _lookup_column( ] # when ambiguous references have been used in USING clause, - # pick the column from the left table + # we resolve them to first or the second column or a COALESCE of the two. if ( len(matched_columns) == 2 and matched_columns[0][1].name == matched_columns[1][1].name