Skip to content

Commit

Permalink
only exclude virtual generated columns
Browse files Browse the repository at this point in the history
Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
  • Loading branch information
Lloyd-Pottiger committed Mar 11, 2024
1 parent a17f4cc commit b892f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tidbsql/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ WHERE table_schema = "%s" AND table_name = "%s"`, sourceDatabase, sourceTable) /
Nullable: nullable,
}
if column.Extra != nil {
if strings.Contains(*column.Extra, "GENERATED") {
if strings.Contains(*column.Extra, "VIRTUAL GENERATED") {
continue
}
}
Expand Down

0 comments on commit b892f26

Please sign in to comment.