mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 22:08:16 +00:00
Support [FIRST | AFTER column_name]
support in ALTER TABLE
for MySQL (#1180)
This commit is contained in:
parent
732e1ec1fc
commit
20c5754784
7 changed files with 257 additions and 6 deletions
|
@ -3512,11 +3512,13 @@ fn parse_alter_table() {
|
|||
column_keyword,
|
||||
if_not_exists,
|
||||
column_def,
|
||||
column_position,
|
||||
} => {
|
||||
assert!(column_keyword);
|
||||
assert!(!if_not_exists);
|
||||
assert_eq!("foo", column_def.name.to_string());
|
||||
assert_eq!("TEXT", column_def.data_type.to_string());
|
||||
assert_eq!(None, column_position);
|
||||
}
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue