Skip to content

Generics API 批量更新不通过 #7617

@ldwqh0

Description

@ldwqh0

rows, err := gorm.G[User](db).Where("id = ?", 111).Omit("name").Updates(ctx, map[string]interface{}{"name": "hello", "age": 18, "active": false})

这个语法在go 1.25.1 gorm1.31 中编译不通过
提示类型不匹配

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions