From b892f265e6c4cb02397e4b0fd14d834a035b093d Mon Sep 17 00:00:00 2001 From: Lloyd-Pottiger Date: Mon, 11 Mar 2024 14:09:03 +0800 Subject: [PATCH] only exclude virtual generated columns Signed-off-by: Lloyd-Pottiger --- pkg/tidbsql/ddl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tidbsql/ddl.go b/pkg/tidbsql/ddl.go index 1bfa538..1b534f7 100644 --- a/pkg/tidbsql/ddl.go +++ b/pkg/tidbsql/ddl.go @@ -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 } }