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

精确匹配字段名到ObjectField #21

Closed
wants to merge 2 commits into from
Closed

精确匹配字段名到ObjectField #21

wants to merge 2 commits into from

Conversation

zsmatrix62
Copy link
Contributor

如果简单地使用 !strings.Contains 会导致,如果表包含列名(比如tbl_content和列content)则会错误地计算为 condition.ObjectField 导致缓存失败

如果简单地使用 !strings.Contains 会导致 如果表包含列名(比如tbl_content和列content)则会错误地计算为 condition.ObjectField 导致缓存失败
@zsmatrix62
Copy link
Contributor Author

而且我好像发现使用 id in (?) 这样的方式也是获取不到缓存的 .. 然后我发现居然有标准写法 .. 囧了。

@8treenet
Copy link
Owner

8treenet commented Dec 9, 2020 via email

@zsmatrix62
Copy link
Contributor Author

这个地方不知道是不是也是这个问题需要修改 #134行

@zsmatrix62
Copy link
Contributor Author

sql太灵活了。全匹配太难,按规范方式才能覆盖到 八叉树 [email protected]

我发现我有很多地方没有按照gorm的文档方式写,之前不怎么熟悉,后来发现大佬的缓存库有些吃不上,现在debug看看是不是我自己的毛病。😂

@8treenet 8treenet closed this Dec 21, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants