Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: allow any identifier as name when parsing a struct field #1573

Merged
merged 1 commit into from
May 9, 2023

Conversation

georgesittas
Copy link
Collaborator

No description provided.

this = self._parse_type()
this = self._parse_type() or self._parse_id_var()
Copy link
Collaborator Author

@georgesittas georgesittas May 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also add an any_token parameter in _parse_type and _parse_column as an alternative approach.

@tobymao tobymao merged commit fa0f3a1 into main May 9, 2023
@tobymao tobymao deleted the jo/struct_field_parsing_fix branch May 9, 2023 17:42
adrianisk pushed a commit to adrianisk/sqlglot that referenced this pull request Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants