Skip to content

Commit 2648917

Browse files
author
Agaev Huseyn
committed
Fix parser for BigDecimal values
1 parent 216d721 commit 2648917

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parser/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7278,7 +7278,7 @@ impl<'a> Parser<'a> {
72787278
let next_token = self.next_token();
72797279
match next_token.token {
72807280
Token::Number(n, l) => Ok(Value::Number(
7281-
Self::parse::<String>(tok.to_string() + &n, location)?,
7281+
Self::parse(tok.to_string() + &n, location)?,
72827282
l,
72837283
)),
72847284
_ => self.expected("number", next_token),

tests/sqlparser_common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2838,7 +2838,7 @@ fn parse_signed_value() {
28382838
START WITH + 45";
28392839
one_statement_parses_to(
28402840
sql2,
2841-
"CREATE SEQUENCE name2 AS BIGINT INCREMENT +10 MINVALUE +30 MAXVALUE +5000 START WITH +45",
2841+
"CREATE SEQUENCE name2 AS BIGINT INCREMENT 10 MINVALUE 30 MAXVALUE 5000 START WITH 45",
28422842
);
28432843
}
28442844

0 commit comments

Comments
 (0)