Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
ywqzzy committed Mar 25, 2024
1 parent 725e2e6 commit 90dabd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ddl/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ func renameIndexes(tblInfo *model.TableInfo, from, to model.CIStr) {

func renameHiddenColumns(tblInfo *model.TableInfo, from, to model.CIStr) {
for _, col := range tblInfo.Columns {
if getExpressionIndexOriginName(col) == from.O {
if col.Hidden && getExpressionIndexOriginName(col) == from.O {
col.Name.L = strings.Replace(col.Name.L, from.L, to.L, 1)
col.Name.O = strings.Replace(col.Name.O, from.O, to.O, 1)
}
Expand Down

0 comments on commit 90dabd2

Please sign in to comment.