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

自定义支持MySQL的find_in_set函数 #541

Closed
weifengze opened this issue Mar 6, 2024 · 5 comments
Closed

自定义支持MySQL的find_in_set函数 #541

weifengze opened this issue Mar 6, 2024 · 5 comments

Comments

@weifengze
Copy link

怎么自定义支持MySQL的find_in_set函数?

@auhouhs
Copy link

auhouhs commented Mar 6, 2024

image
写的马马虎虎,不确定有没有可以复用的类,也不确定有没有什么隐藏的问题,不过效果可以实现,你参考下呢

@weifengze
Copy link
Author

谢谢呢~

@vincentlauvlwj
Copy link
Member

@auhouhs 没必要单独定义一个表达式类,可以直接用 FunctionExpression,写起来更简单

@auhouhs
Copy link

auhouhs commented Mar 6, 2024

@vincentlauvlwj 我仔细看了一下,用FunctionExpression确实会更简单
image
我修改了一下,你再参考一下呢,这个简单很多,不用单独定义表达式类了 @weifengze

@weifengze
Copy link
Author

@auhouhs 谢谢大佬的代码,我一会儿试一下!
@vincentlauvlwj 谢谢大佬开发的ORM框架!

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

3 participants