This commit is contained in:
Lunny Xiao 2023-07-01 08:54:10 +08:00
parent 137c075d4b
commit 39b59bd7f3
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 7 additions and 1 deletions

View File

@ -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 {