Skip to content

Commit

Permalink
fix: only clone types that implement SQLNode
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Jun 7, 2024
1 parent d0df621 commit 160521c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/schemadiff/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,8 @@ func (s *Schema) getViewColumnNames(v *CreateViewEntity, schemaInformation *decl
for _, entityName := range dependentNames {
if schemaInformation.Tables[entityName] != nil { // is nil for dual/DUAL
for _, col := range schemaInformation.Tables[entityName].Columns {
name := sqlparser.Clone(&col.Name)
columnNames = append(columnNames, name)
name := sqlparser.Clone(col.Name)
columnNames = append(columnNames, &name)
}
}
}
Expand Down

0 comments on commit 160521c

Please sign in to comment.