Parse a comma-delimited list of projections after SELECT
(&mut self)
| 8740 | |
| 8741 | /// Parse a comma-delimited list of projections after SELECT |
| 8742 | fn parse_select_item(&mut self) -> Result<SelectItem<Raw>, ParserError> { |
| 8743 | if self.consume_token(&Token::Star) { |
| 8744 | return Ok(SelectItem::Wildcard); |
| 8745 | } |
| 8746 | Ok(SelectItem::Expr { |
| 8747 | expr: self.parse_expr()?, |
| 8748 | alias: self.parse_optional_alias(Keyword::is_reserved_in_column_alias)?, |
| 8749 | }) |
| 8750 | } |
| 8751 | |
| 8752 | /// Parse an expression, optionally followed by ASC or DESC, |
| 8753 | /// and then `[NULLS { FIRST | LAST }]` (used in ORDER BY) |
no test coverage detected