Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Oct 30, 2024
1 parent 8a948b7 commit f2f525c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edb/pgsql/resolver/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Expand Down
2 changes: 1 addition & 1 deletion edb/pgsql/resolver/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2f525c

Please sign in to comment.