Skip to content

Commit

Permalink
Update sqlglot/parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
georgesittas authored Dec 24, 2024
1 parent dfa4fef commit 71f3ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlglot/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4021,7 +4021,7 @@ def _parse_on() -> t.Optional[exp.Expression]:
if self._match(TokenType.IN):
# PIVOT ... ON col IN (row_val1, row_val2)
return self._parse_in(this)
elif self._match(TokenType.ALIAS, advance=False):
if self._match(TokenType.ALIAS, advance=False):
# UNPIVOT ... ON (col1, col2, col3) AS row_val
return self._parse_alias(this)

Expand Down

0 comments on commit 71f3ca8

Please sign in to comment.