Skip to content

很好,很强大,比 gorm 注重细节 #3

@wangdahoo

Description

@wangdahoo

gorm的问题在于,Where里面放了map[string]interface{}好像会引用错地址,然后多AND条件没有做优先级处理,比如a and b and c他的结果是a and (b and c),而borm不光处理好了这个优先级,还能自动判定什么时候要加括号!仅有在and和or同时出现,且与不加括号时的隐式优先级不一致的时候!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions