From a7dca552a799acd1a7e9a08d40ebbd96af39469a Mon Sep 17 00:00:00 2001 From: make123 Date: Wed, 11 Sep 2024 14:25:11 +0800 Subject: [PATCH] fix 122 --- .../mysql/db-simulation/app/syntax/spider_create_table_rule.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dbm-services/mysql/db-simulation/app/syntax/spider_create_table_rule.go b/dbm-services/mysql/db-simulation/app/syntax/spider_create_table_rule.go index 4c3698cd5c..3eba48dd4a 100644 --- a/dbm-services/mysql/db-simulation/app/syntax/spider_create_table_rule.go +++ b/dbm-services/mysql/db-simulation/app/syntax/spider_create_table_rule.go @@ -142,6 +142,7 @@ func (c CreateTableResult) findTablesIndex() (hasPk bool, uks []KeyDef, keys []K switch { case key.PrimaryKey: hasPk = true + uks = append(uks, key) case key.UniqueKey: uks = append(uks, key) default: