Replace ReferentialAction enum in DROP statements (#1648)

This commit is contained in:
Stepan Koltsov 2025-01-08 18:27:25 +00:00 committed by GitHub
parent 62bcaa1c98
commit 397bceb241
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 53 additions and 33 deletions

View file

@ -11760,12 +11760,12 @@ fn test_drop_policy() {
if_exists,
name,
table_name,
option,
drop_behavior,
} => {
assert_eq!(if_exists, true);
assert_eq!(name.to_string(), "my_policy");
assert_eq!(table_name.to_string(), "my_table");
assert_eq!(option, Some(ReferentialAction::Restrict));
assert_eq!(drop_behavior, Some(DropBehavior::Restrict));
}
_ => unreachable!(),
}