Skip to content

add support for postgres composite types #466

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

Merged
merged 2 commits into from
May 9, 2022
Merged

Conversation

poonai
Copy link
Contributor

@poonai poonai commented Apr 20, 2022

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2196255464

  • 45 of 46 (97.83%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 90.468%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/parser.rs 8 9 88.89%
Totals Coverage Status
Change from base Build 2191828491: 0.04%
Covered Lines: 8001
Relevant Lines: 8844

💛 - Coveralls

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @poonai -- I am really sorry for the delay in review.

@@ -516,7 +516,18 @@ impl<'a> Parser<'a> {
}
};
self.expect_token(&Token::RParen)?;
Ok(expr)
if !self.consume_token(&Token::Period) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am thinking if the CompositeAccess can only appear after a ) -- it seems like it should be possible in other places, though i suppose without a parenthesis .<name> will appear as a compound identifier.

@alamb alamb merged commit ed86c6d into apache:main May 9, 2022
alamb added a commit to alamb/sqlparser-rs that referenced this pull request May 9, 2022
alamb added a commit that referenced this pull request May 10, 2022
* Update changelog for 0.17.0

* add reference to #466

* Updates for recent merges
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