Fix sqlserver test

This commit is contained in:
Lunny Xiao 2023-06-30 15:59:37 +08:00
parent 27a9febb4a
commit 3611f2e045
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
1 changed files with 2 additions and 2 deletions

View File

@ -555,7 +555,7 @@ func (t TestCollateColumn) TableCollations() []*schemas.Collation {
} else if t.dbtype == string(schemas.MSSQL) { } else if t.dbtype == string(schemas.MSSQL) {
return []*schemas.Collation{ return []*schemas.Collation{
{ {
Name: "SQL_Latin1_General_CP1_CI", Name: "Latin1_General_CI_AS",
Column: "name", Column: "name",
}, },
} }
@ -593,7 +593,7 @@ func TestCollate(t *testing.T) {
if testEngine.Dialect().URI().DBType == schemas.MYSQL { if testEngine.Dialect().URI().DBType == schemas.MYSQL {
newCollation = "utf8mb4_bin" newCollation = "utf8mb4_bin"
} else if testEngine.Dialect().URI().DBType != schemas.MSSQL { } else if testEngine.Dialect().URI().DBType != schemas.MSSQL {
newCollation = "SQL_Latin1_General_CP1_CS" newCollation = "Latin1_General_CS_AS"
} else { } else {
return return
} }