Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas authored Jan 13, 2025
1 parent 36e8b31 commit 4db59ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sqlglot/dialects/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1584,9 +1584,9 @@ def normalize(identifier: t.Optional[exp.Identifier]) -> t.Optional[str]:
):
equal_lhs.replace(exp.column(equal_lhs.this))
if isinstance(then, exp.Insert):
column_list = then.args.get("this")
if column_list is not None:
for column in column_list.find_all(exp.Column):
column_list = then.this
if isinstance(column_list, exp.Tuple):
for column in column_list.expressions:
if normalize(column.args.get("table")) in targets:
column.replace(exp.column(column.this))

Expand Down

0 comments on commit 4db59ca

Please sign in to comment.