fix: support alter table ~ add ~ custom_type (#5165)

This commit is contained in:
Niwaka
2024-12-15 18:05:29 +09:00
committed by Yingwen
parent 6d4cc2e070
commit dc2252eb6d
3 changed files with 23 additions and 7 deletions

View File

@@ -57,6 +57,10 @@ impl TransformRule for TypeAliasTransformRule {
alter_table.alter_operation_mut()
{
replace_type_alias(target_type)
} else if let AlterTableOperation::AddColumn { column_def, .. } =
alter_table.alter_operation_mut()
{
replace_type_alias(&mut column_def.data_type);
}
}
_ => {}