Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
demoManito committed Aug 26, 2024
1 parent eac278d commit 080429f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/hooks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func TestBeforeUpdateWithStructColumn(t *testing.T) {
sql := DB.ToSQL(func(tx *gorm.DB) *gorm.DB {
return tx.Model(&su).Update("name", "demoManito")
})
if sql != "UPDATE `struct_updates` SET `name`=\"demoManito\",`version`=2 WHERE `id` = 1" {
if sql != "UPDATE `struct_updates` SET `name`='demoManito',`version`=2 WHERE `id` = 1" {
t.Fatalf("invalid sql: %v", sql)
}
}

0 comments on commit 080429f

Please sign in to comment.