Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
taytzehao committed Oct 8, 2023
1 parent bb85ba9 commit e22c32c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sqlparser/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3363,6 +3363,10 @@ impl Parser {
loop {
idents.push(self.parse_identifier()?);

// There are cases where no skip is required as minus could be used
// as a subtraction if an object has whitespace from the minus. If
// normal peek_token is used the subsequent minus could be mistaken
// to be part of the object rather than being a subtraction.
match self.peek_token_no_skip() {
Some(token_with_location) => match token_with_location.token {
Token::Period => {
Expand Down

0 comments on commit e22c32c

Please sign in to comment.