Skip to content

Comments

Support alias for UnPivot statement (see discussion #1374)#1380

Merged
wumpz merged 1 commit intoJSQLParser:masterfrom
fabriziodelfranco:unpivot-with-alias
Oct 20, 2021
Merged

Support alias for UnPivot statement (see discussion #1374)#1380
wumpz merged 1 commit intoJSQLParser:masterfrom
fabriziodelfranco:unpivot-with-alias

Conversation

@fabriziodelfranco
Copy link
Contributor

  • Changed JSqlParserCC.jjt file to add the alias to the UnPivot lexical entity.
  • Added Alias to the UnPivot object.
  • Improved SelectDeParser to correctly deparse SubSelect's UnPivot component.

- Changed JSqlParserCC.jjt file to add the alias to the UnPivot lexical entity.
- Added Alias to the UnPivot object.
- Improved SelectDeParser to correctly deparse SubSelect's UnPivot component.
@manticore-projects
Copy link
Contributor

Very nice and clean PR, thank you for contributing!
We do look forward to receive more soon. Cheers!

@wumpz wumpz merged commit 0c0c32e into JSQLParser:master Oct 20, 2021
@wumpz
Copy link
Member

wumpz commented Oct 20, 2021

Sorry, I saw too late, that your PR is already a one-commit size. So I did a squash and merge. Keep that in mind if you are updating your current branch.

manticore-projects added a commit to manticore-projects/JSqlParser that referenced this pull request Oct 21, 2021
Add another Alias() Keyword related LOOKAHEAD
Fix a Keyword Spelling Error in the Deparser
Remove UNPIVOT from the PARENTHESIS Deparser, as it was an ugly workaround made obsolete by PR JSQLParser#1380
wumpz pushed a commit that referenced this pull request Oct 22, 2021
Add another Alias() Keyword related LOOKAHEAD
Fix a Keyword Spelling Error in the Deparser
Remove UNPIVOT from the PARENTHESIS Deparser, as it was an ugly workaround made obsolete by PR #1380
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.

3 participants