+
Skip to content

A breaking change from upgrade v1.26.1 to v1.30.0 of Where function #7507

Open
@POABOB

Description

@POABOB

GORM Playground Link

go-gorm/playground#813

Description

I have passed the basicCondition map into the Where function for a long time.

basicCondition := map[string]string{
	fmt.Sprintf("%s.is_deleted", tableName): "false",
}
return gorm.Table(tableName).Where(basicCondition)

When I upgrade the version to v1.30.0, I found the error that the table name is duplicate.
Can you please make an enhancement of being compatible with old version.

"tableName"."tableName"."is_deleted" = 'false' 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载