Skip to content

Commit b5bb4f2

Browse files
committed
fix BigDecimal feature in test
1 parent 406ce84 commit b5bb4f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/sqlparser_common.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -10929,20 +10929,20 @@ fn parse_explain_with_option_list() {
1092910929
Some(vec![
1093010930
UtilityOption {
1093110931
name: Ident::new("NUM1"),
10932-
arg: Some(Expr::Value(Value::Number("10".to_string(), false))),
10932+
arg: Some(Expr::Value(Value::Number("10".parse().unwrap(), false))),
1093310933
},
1093410934
UtilityOption {
1093510935
name: Ident::new("NUM2"),
1093610936
arg: Some(Expr::UnaryOp {
1093710937
op: UnaryOperator::Plus,
10938-
expr: Box::new(Expr::Value(Value::Number("10.1".to_string(), false))),
10938+
expr: Box::new(Expr::Value(Value::Number("10.1".parse().unwrap(), false))),
1093910939
}),
1094010940
},
1094110941
UtilityOption {
1094210942
name: Ident::new("NUM3"),
1094310943
arg: Some(Expr::UnaryOp {
1094410944
op: UnaryOperator::Minus,
10945-
expr: Box::new(Expr::Value(Value::Number("10.2".to_string(), false))),
10945+
expr: Box::new(Expr::Value(Value::Number("10.2".parse().unwrap(), false))),
1094610946
}),
1094710947
},
1094810948
]),
@@ -10969,7 +10969,7 @@ fn parse_explain_with_option_list() {
1096910969
name: Ident::new("USER_DEF_NUM"),
1097010970
arg: Some(Expr::UnaryOp {
1097110971
op: UnaryOperator::Minus,
10972-
expr: Box::new(Expr::Value(Value::Number("100.1".to_string(), false))),
10972+
expr: Box::new(Expr::Value(Value::Number("100.1".parse().unwrap(), false))),
1097310973
}),
1097410974
},
1097510975
];

0 commit comments

Comments
 (0)