This commit is contained in:
Jinzhu 2025-05-25 09:46:35 +08:00
parent 4db3fde9c5
commit 4f189a7eae
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ services:
- POSTGRES_USER=gorm
- POSTGRES_PASSWORD=gorm
mssql:
image: '${MSSQL_IMAGE}:2022-latest'
image: '${MSSQL_IMAGE}:latest'
ports:
- "127.0.0.1:9930:1433"
environment:

View File

@ -846,7 +846,7 @@ func TestGenericsToSQL(t *testing.T) {
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)
}
}