Skip to content

Commit ebb82e0

Browse files
committed
the tests compile !
1 parent e284e11 commit ebb82e0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/sqlparser_mssql.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ fn parse_mssql_json_object() {
746746
assert!(matches!(
747747
args[0],
748748
FunctionArg::ExprNamed {
749-
name: Expr::Value((Value::SingleQuotedString(_)).with_empty_span()),
749+
name: Expr::Value(ValueWithSpan{value: Value::SingleQuotedString(_), span: _}),
750750
arg: FunctionArgExpr::Expr(Expr::Function(_)),
751751
operator: FunctionArgOperator::Colon
752752
}
@@ -762,7 +762,7 @@ fn parse_mssql_json_object() {
762762
assert!(matches!(
763763
args[2],
764764
FunctionArg::ExprNamed {
765-
name: Expr::Value((Value::SingleQuotedString(_)).with_empty_span()),
765+
name: Expr::Value(ValueWithSpan{value: Value::SingleQuotedString(_), span: _}),
766766
arg: FunctionArgExpr::Expr(Expr::Subquery(_)),
767767
operator: FunctionArgOperator::Colon
768768
}
@@ -793,23 +793,23 @@ fn parse_mssql_json_object() {
793793
assert!(matches!(
794794
args[0],
795795
FunctionArg::ExprNamed {
796-
name: Expr::Value((Value::SingleQuotedString(_)).with_empty_span()),
796+
name: Expr::Value(ValueWithSpan{value: Value::SingleQuotedString(_), span: _}),
797797
arg: FunctionArgExpr::Expr(Expr::CompoundIdentifier(_)),
798798
operator: FunctionArgOperator::Colon
799799
}
800800
));
801801
assert!(matches!(
802802
args[1],
803803
FunctionArg::ExprNamed {
804-
name: Expr::Value((Value::SingleQuotedString(_)).with_empty_span()),
804+
name: Expr::Value(ValueWithSpan{value: Value::SingleQuotedString(_), span: _}),
805805
arg: FunctionArgExpr::Expr(Expr::CompoundIdentifier(_)),
806806
operator: FunctionArgOperator::Colon
807807
}
808808
));
809809
assert!(matches!(
810810
args[2],
811811
FunctionArg::ExprNamed {
812-
name: Expr::Value((Value::SingleQuotedString(_)).with_empty_span()),
812+
name: Expr::Value(ValueWithSpan{value: Value::SingleQuotedString(_), span: _}),
813813
arg: FunctionArgExpr::Expr(Expr::CompoundIdentifier(_)),
814814
operator: FunctionArgOperator::Colon
815815
}

tests/sqlparser_sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ fn parse_attach_database() {
446446
match verified_stmt {
447447
Statement::AttachDatabase {
448448
schema_name,
449-
database_file_name: Expr::Value(Value::SingleQuotedString(literal_name)),
449+
database_file_name: Expr::Value(ValueWithSpan{value: Value::SingleQuotedString(literal_name), span: _}),
450450
database: true,
451451
} => {
452452
assert_eq!(schema_name.value, "test");

0 commit comments

Comments
 (0)