From 39b59bd7f37cfaa5557daeeaf2965c9d37ace528 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 1 Jul 2023 08:54:10 +0800 Subject: [PATCH] Fix --- integrations/schema_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integrations/schema_test.go b/integrations/schema_test.go index 5c8ca4aa..122ef662 100644 --- a/integrations/schema_test.go +++ b/integrations/schema_test.go @@ -5,6 +5,7 @@ package integrations import ( + "errors" "fmt" "strings" "testing" @@ -587,11 +588,16 @@ func TestCollate(t *testing.T) { for _, table := range tables { if table.Name == "test_collate_column" { fmt.Println("21222", table.Collation) - if table.Collation == "utf8mb4_general_ci" { + col := table.GetColumn("name") + if col == nil { + assert.Error(t, errors.New("not found column")) + } + if col.Collation == "utf8mb4_general_ci" { assert.Error(t, err) } else { assert.NoError(t, err) } + break } } } else if testEngine.Dialect().URI().DBType == schemas.MSSQL {