Fix
This commit is contained in:
parent
137c075d4b
commit
39b59bd7f3
|
@ -5,6 +5,7 @@
|
||||||
package integrations
|
package integrations
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -587,11 +588,16 @@ func TestCollate(t *testing.T) {
|
||||||
for _, table := range tables {
|
for _, table := range tables {
|
||||||
if table.Name == "test_collate_column" {
|
if table.Name == "test_collate_column" {
|
||||||
fmt.Println("21222", table.Collation)
|
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)
|
assert.Error(t, err)
|
||||||
} else {
|
} else {
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if testEngine.Dialect().URI().DBType == schemas.MSSQL {
|
} else if testEngine.Dialect().URI().DBType == schemas.MSSQL {
|
||||||
|
|
Loading…
Reference in New Issue