We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15e4e32 commit 370d119Copy full SHA for 370d119
1 file changed
src/parser/mod.rs
@@ -9985,7 +9985,7 @@ impl<'a> Parser<'a> {
9985
/// Parse optional alias (with or without AS keyword) for pipe operators
9986
fn parse_optional_pipe_alias(&mut self) -> Result<Option<Ident>, ParserError> {
9987
if self.parse_keyword(Keyword::AS) {
9988
- Some(self.parse_identifier()).transpose()
+ Ok(Some(self.parse_identifier()?))
9989
} else {
9990
// Check if the next token is an identifier (implicit alias)
9991
self.maybe_parse(|parser| parser.parse_identifier())
0 commit comments