@@ -6663,7 +6663,7 @@ fn parse_foreign_key_match_full() {
6663
6663
match & columns[ 0 ] . options [ 1 ] . option {
6664
6664
ColumnOption :: ForeignKey ( constraint) => {
6665
6665
assert_eq ! ( constraint. foreign_table. to_string( ) , "another_table" ) ;
6666
- assert_eq ! ( constraint. match_kind, Some ( MatchKind :: Full ) ) ;
6666
+ assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Full ) ) ;
6667
6667
}
6668
6668
_ => panic ! ( "Expected ColumnOption::ForeignKey" ) ,
6669
6669
}
@@ -6672,7 +6672,7 @@ fn parse_foreign_key_match_full() {
6672
6672
match & constraints[ 0 ] {
6673
6673
TableConstraint :: ForeignKey ( constraint) => {
6674
6674
assert_eq ! ( constraint. foreign_table. to_string( ) , "customers" ) ;
6675
- assert_eq ! ( constraint. match_kind, Some ( MatchKind :: Full ) ) ;
6675
+ assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Full ) ) ;
6676
6676
}
6677
6677
_ => panic ! ( "Expected TableConstraint::ForeignKey" ) ,
6678
6678
}
@@ -6696,7 +6696,7 @@ fn parse_foreign_key_match_simple() {
6696
6696
match & columns[ 0 ] . options [ 1 ] . option {
6697
6697
ColumnOption :: ForeignKey ( constraint) => {
6698
6698
assert_eq ! ( constraint. foreign_table. to_string( ) , "another_table" ) ;
6699
- assert_eq ! ( constraint. match_kind, Some ( MatchKind :: Simple ) ) ;
6699
+ assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Simple ) ) ;
6700
6700
}
6701
6701
_ => panic ! ( "Expected ColumnOption::ForeignKey" ) ,
6702
6702
}
@@ -6705,7 +6705,7 @@ fn parse_foreign_key_match_simple() {
6705
6705
match & constraints[ 0 ] {
6706
6706
TableConstraint :: ForeignKey ( constraint) => {
6707
6707
assert_eq ! ( constraint. foreign_table. to_string( ) , "customers" ) ;
6708
- assert_eq ! ( constraint. match_kind, Some ( MatchKind :: Simple ) ) ;
6708
+ assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Simple ) ) ;
6709
6709
}
6710
6710
_ => panic ! ( "Expected TableConstraint::ForeignKey" ) ,
6711
6711
}
@@ -6728,15 +6728,15 @@ fn parse_foreign_key_match_partial() {
6728
6728
match & columns[ 0 ] . options [ 1 ] . option {
6729
6729
ColumnOption :: ForeignKey ( constraint) => {
6730
6730
assert_eq ! ( constraint. foreign_table. to_string( ) , "another_table" ) ;
6731
- assert_eq ! ( constraint. match_kind, Some ( MatchKind :: Partial ) ) ;
6731
+ assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Partial ) ) ;
6732
6732
}
6733
6733
_ => panic ! ( "Expected ColumnOption::ForeignKey" ) ,
6734
6734
}
6735
6735
6736
6736
match & constraints[ 0 ] {
6737
6737
TableConstraint :: ForeignKey ( constraint) => {
6738
6738
assert_eq ! ( constraint. foreign_table. to_string( ) , "customers" ) ;
6739
- assert_eq ! ( constraint. match_kind, Some ( MatchKind :: Partial ) ) ;
6739
+ assert_eq ! ( constraint. match_kind, Some ( ConstraintReferenceMatchKind :: Partial ) ) ;
6740
6740
}
6741
6741
_ => panic ! ( "Expected TableConstraint::ForeignKey" ) ,
6742
6742
}
0 commit comments