Support [FIRST | AFTER column_name] support in ALTER TABLE for MySQL (#1180)

This commit is contained in:
xring 2024-04-07 20:43:23 +08:00 committed by GitHub
parent 732e1ec1fc
commit 20c5754784
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 257 additions and 6 deletions

View file

@ -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!(),
};