-
Notifications
You must be signed in to change notification settings - Fork 685
Support array expressions such as ARRAY[1,2] , foo[1] and INT[][]
#419
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
Conversation
Pull Request Test Coverage Report for Build 1856868780
💛 - Coveralls |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution @gamife
| expr: Box::new(expr), | ||
| }) | ||
| } else if Token::LBracket == tok { | ||
| if dialect_of!(self is PostgreSqlDialect) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | ||
|
|
||
| #[test] | ||
| fn parse_map_access_expr() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add back the the existing test parsing the simpler expression SELECT foo[0] FROM foos to make sure that that syntax is still supported (it would be fine if the resulting parse tree is slightly different)
I think it is important to ensure that this PR does not introduce a regression in terms of the syntax that is supported (I don't think it does, but I would like the test to ensure that this is the case)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Thanks for the review!
ARRAY[1,2] , foo[1] and INT[][]
ARRAY[1,2] , foo[1] and INT[][]ARRAY[1,2] , foo[1] and INT[][]
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @gamife
Uh oh!
There was an error while loading. Please reload this page.