diff --git a/tests/compose.yml b/tests/compose.yml index 66f2daee..f43fe82a 100644 --- a/tests/compose.yml +++ b/tests/compose.yml @@ -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: diff --git a/tests/generics_test.go b/tests/generics_test.go index 39decb3f..9a7c9ddd 100644 --- a/tests/generics_test.go +++ b/tests/generics_test.go @@ -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) } }