Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wangdahoo opened this issue Jun 22, 2019 · 0 comments
Open

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

wangdahoo opened this issue Jun 22, 2019 · 0 comments

Comments

@wangdahoo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant