Skip to content

Commit ae1a201

Browse files
committed
sql_parser: update statement parser implemented
1 parent 15ce17e commit ae1a201

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser/update/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl<'a> UpdateStatementParser for Parser<'a> {
4646
} else {
4747
return Err(ParsingError::UnexpectedToken(format!(
4848
"Expected ON CONFLICT keyword, got: {}",
49-
self.peek_token()?.to_string()
49+
self.peek_token()?
5050
)));
5151
};
5252
}
@@ -80,10 +80,10 @@ impl<'a> UpdateStatementParser for Parser<'a> {
8080
}
8181
self.consume_as(TokenType::RightParen)?;
8282
self.consume_as(TokenType::Equals)?;
83-
return Ok(SetClause::MultipleColumnAssignment(
83+
Ok(SetClause::MultipleColumnAssignment(
8484
ids,
8585
self.parse_expression()?,
86-
));
86+
))
8787
} else {
8888
let id = self.parse_identifier()?;
8989
self.consume_as(TokenType::Equals)?;

0 commit comments

Comments
 (0)