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

dao.func 建议把int返回值改为long #1570

Open
lihongjie0209 opened this issue Jan 13, 2021 · 1 comment
Open

dao.func 建议把int返回值改为long #1570

lihongjie0209 opened this issue Jan 13, 2021 · 1 comment

Comments

@lihongjie0209
Copy link
Contributor

如果调用 sum 之类的函数超过 int 的最大值, 那么会抛出异常

dao.func(Person.class, "sum", "age");

image

当然也可以使用func2, 但是感觉func的存在有点迷惑性, 当数据量上来之后才会出问题

@wendal
Copy link
Member

wendal commented Jan 13, 2021

API变更不太好呀...

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

2 participants