mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 22:08:16 +00:00
Replace ReferentialAction
enum in DROP
statements (#1648)
This commit is contained in:
parent
62bcaa1c98
commit
397bceb241
5 changed files with 53 additions and 33 deletions
|
@ -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!(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue