Skip to content

Commit 4a76bce

Browse files
committed
Update test cases based on go-gorm/gorm#7619
1 parent 53b96c8 commit 4a76bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/table_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestTable(t *testing.T) {
9292
}
9393

9494
r = dryDB.Table("USER U").Select("NAME").Find(&User{}).Statement
95-
if !regexp.MustCompile("SELECT NAME FROM USER U WHERE .U.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
95+
if !regexp.MustCompile("SELECT .name. FROM USER U WHERE .U.\\..deleted_at. IS NULL").MatchString(r.Statement.SQL.String()) {
9696
t.Errorf("Table with escape character, got %v", r.Statement.SQL.String())
9797
}
9898

0 commit comments

Comments
 (0)