Skip to content

Commit 00f34ba

Browse files
committed
delete comment
1 parent 3b1b214 commit 00f34ba

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

sql/analyzer/validate_create_table.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -470,15 +470,6 @@ func validateModifyColumn(ctx *sql.Context, initialSch sql.Schema, schema sql.Sc
470470
return nil, err
471471
}
472472

473-
//if e1, ok := newCol.Type.(sql.EnumType); ok {
474-
// oldCol := initialSch[initialSch.IndexOfColName(oldColName)]
475-
// if e2, ok := oldCol.Type.(sql.EnumType); ok {
476-
// if len(e1.Values()) < len(e2.Values()) {
477-
// return nil, sql.ErrEnumTypeTruncated.New()
478-
// }
479-
// }
480-
//}
481-
482473
// TODO: When a column is being modified, we should ideally check that any existing table check constraints
483474
// are still valid (e.g. if the column type changed) and throw an error if they are invalidated.
484475
// That would be consistent with MySQL behavior.

0 commit comments

Comments
 (0)