Skip to content

Commit

Permalink
Fix parser for BigDecimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
Agaev Huseyn committed Sep 10, 2024
1 parent 216d721 commit 2648917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7278,7 +7278,7 @@ impl<'a> Parser<'a> {
let next_token = self.next_token();
match next_token.token {
Token::Number(n, l) => Ok(Value::Number(
Self::parse::<String>(tok.to_string() + &n, location)?,
Self::parse(tok.to_string() + &n, location)?,
l,
)),
_ => self.expected("number", next_token),
Expand Down
2 changes: 1 addition & 1 deletion tests/sqlparser_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,7 @@ fn parse_signed_value() {
START WITH + 45";
one_statement_parses_to(
sql2,
"CREATE SEQUENCE name2 AS BIGINT INCREMENT +10 MINVALUE +30 MAXVALUE +5000 START WITH +45",
"CREATE SEQUENCE name2 AS BIGINT INCREMENT 10 MINVALUE 30 MAXVALUE 5000 START WITH 45",
);
}

Expand Down

0 comments on commit 2648917

Please sign in to comment.