diff --git a/tests/scopes_test.go b/tests/scopes_test.go index b4a9d11c..52c6b37b 100644 --- a/tests/scopes_test.go +++ b/tests/scopes_test.go @@ -87,7 +87,7 @@ func TestComplexScopes(t *testing.T) { func(d *gorm.DB) *gorm.DB { return d.Where(d.Or("b = 2").Or("c = 3")) }, ).Find(&Language{}) }, - expected: "SELECT * FROM `languages` WHERE a = 1 AND (b = 2 OR c = 3)", + expected: `SELECT * FROM "languages" WHERE a = 1 AND (b = 2 OR c = 3)`, }, { name: "depth_1_pre_cond", queryFn: func(tx *gorm.DB) *gorm.DB { @@ -96,7 +96,7 @@ func TestComplexScopes(t *testing.T) { func(d *gorm.DB) *gorm.DB { return d.Or(d.Where("b = 2").Or("c = 3")) }, ).Find(&Language{}) }, - expected: "SELECT * FROM `languages` WHERE z = 0 AND a = 1 OR (b = 2 OR c = 3)", + expected: `SELECT * FROM "languages" WHERE z = 0 AND a = 1 OR (b = 2 OR c = 3)`, }, { name: "depth_2", queryFn: func(tx *gorm.DB) *gorm.DB { @@ -113,7 +113,7 @@ func TestComplexScopes(t *testing.T) { func(d *gorm.DB) *gorm.DB { return d.Where("d = 4") }, ).Find(&Language{}) }, - expected: "SELECT * FROM `languages` WHERE d = 4 OR c = 3 OR (a = 1 AND b = 2)", + expected: `SELECT * FROM "languages" WHERE d = 4 OR c = 3 OR (a = 1 AND b = 2)`, }, }