mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 15:34:09 +00:00
Remove most instances of #[cfg(feature(bigdecimal))]
in tests (#910)
This commit is contained in:
parent
a50671d95d
commit
4efe55dd8a
8 changed files with 28 additions and 90 deletions
|
@ -59,12 +59,6 @@ fn parse_mssql_delimited_identifiers() {
|
|||
fn parse_create_procedure() {
|
||||
let sql = "CREATE OR ALTER PROCEDURE test (@foo INT, @bar VARCHAR(256)) AS BEGIN SELECT 1 END";
|
||||
|
||||
#[cfg(feature = "bigdecimal")]
|
||||
let one = Value::Number(bigdecimal::BigDecimal::from(1), false);
|
||||
|
||||
#[cfg(not(feature = "bigdecimal"))]
|
||||
let one = Value::Number("1".to_string(), false);
|
||||
|
||||
assert_eq!(
|
||||
ms().verified_stmt(sql),
|
||||
Statement::CreateProcedure {
|
||||
|
@ -79,7 +73,7 @@ fn parse_create_procedure() {
|
|||
body: Box::new(SetExpr::Select(Box::new(Select {
|
||||
distinct: None,
|
||||
top: None,
|
||||
projection: vec![SelectItem::UnnamedExpr(Expr::Value(one))],
|
||||
projection: vec![SelectItem::UnnamedExpr(Expr::Value(number("1")))],
|
||||
into: None,
|
||||
from: vec![],
|
||||
lateral_views: vec![],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue