mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-12 23:12:01 +00:00
Support ALTER TABLE ... SET LOCATION
(#1154)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
6f090e5547
commit
991dbab755
5 changed files with 59 additions and 7 deletions
|
@ -256,6 +256,7 @@ pub fn alter_table_op_with_name(stmt: Statement, expected_name: &str) -> AlterTa
|
|||
if_exists,
|
||||
only: is_only,
|
||||
operations,
|
||||
location: _,
|
||||
} => {
|
||||
assert_eq!(name.to_string(), expected_name);
|
||||
assert!(!if_exists);
|
||||
|
@ -265,6 +266,7 @@ pub fn alter_table_op_with_name(stmt: Statement, expected_name: &str) -> AlterTa
|
|||
_ => panic!("Expected ALTER TABLE statement"),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn alter_table_op(stmt: Statement) -> AlterTableOperation {
|
||||
alter_table_op_with_name(stmt, "tab")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue