fix test
This commit is contained in:
parent
4db3fde9c5
commit
4f189a7eae
@ -18,7 +18,7 @@ services:
|
|||||||
- POSTGRES_USER=gorm
|
- POSTGRES_USER=gorm
|
||||||
- POSTGRES_PASSWORD=gorm
|
- POSTGRES_PASSWORD=gorm
|
||||||
mssql:
|
mssql:
|
||||||
image: '${MSSQL_IMAGE}:2022-latest'
|
image: '${MSSQL_IMAGE}:latest'
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:9930:1433"
|
- "127.0.0.1:9930:1433"
|
||||||
environment:
|
environment:
|
||||||
|
@ -846,7 +846,7 @@ func TestGenericsToSQL(t *testing.T) {
|
|||||||
return tx
|
return tx
|
||||||
})
|
})
|
||||||
|
|
||||||
if !regexp.MustCompile("SELECT \\* FROM `users`.* 10").MatchString(sql) {
|
if !regexp.MustCompile("SELECT \\* FROM .users..* 10").MatchString(sql) {
|
||||||
t.Errorf("ToSQL: got wrong sql with Generics API %v", sql)
|
t.Errorf("ToSQL: got wrong sql with Generics API %v", sql)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user