From 137c075d4ba9db950636c9511bdab4fb9aad16fc Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sat, 1 Jul 2023 08:31:14 +0800 Subject: [PATCH] fix --- integrations/schema_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integrations/schema_test.go b/integrations/schema_test.go index e00f6dae..5c8ca4aa 100644 --- a/integrations/schema_test.go +++ b/integrations/schema_test.go @@ -578,7 +578,7 @@ func TestCollate(t *testing.T) { UserId: 1, Name: "Test", }) - if testEngine.Dialect().URI().DBType == schemas.MYSQL || testEngine.Dialect().URI().DBType == schemas.MSSQL { + if testEngine.Dialect().URI().DBType == schemas.MYSQL { ver, err1 := testEngine.DBVersion() assert.NoError(t, err1) fmt.Println("====", ver.Edition) @@ -586,6 +586,7 @@ func TestCollate(t *testing.T) { assert.NoError(t, err1) for _, table := range tables { if table.Name == "test_collate_column" { + fmt.Println("21222", table.Collation) if table.Collation == "utf8mb4_general_ci" { assert.Error(t, err) } else { @@ -593,6 +594,8 @@ func TestCollate(t *testing.T) { } } } + } else if testEngine.Dialect().URI().DBType == schemas.MSSQL { + assert.Error(t, err) } else { assert.NoError(t, err) }