From ec0b0d6fabb46903b5eaa7fb6a7b65c1f1922277 Mon Sep 17 00:00:00 2001 From: black Date: Wed, 15 Mar 2023 17:34:49 +0800 Subject: [PATCH] replace quote --- tests/scopes_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)`, }, }