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

数据库操作 + - 不支持浮点数操作 #128

Open
3DMXM opened this issue Apr 2, 2021 · 3 comments
Open

数据库操作 + - 不支持浮点数操作 #128

3DMXM opened this issue Apr 2, 2021 · 3 comments

Comments

@3DMXM
Copy link

3DMXM commented Apr 2, 2021

如果使用的话,
$result = $this->testDAO->update(['type'=>['+'=>1.3]]);

结果好像会被会被取整

数据库的类型已经设置成double了

直接赋予一个浮点数没有问题,

@billge1205
Copy link
Collaborator

找到问题了 处理sql注入保护的时候强转intval了 稍等我想想处理下

@billge1205
Copy link
Collaborator

e6f5511
两个对应的文件修改已更新 替换下即可

@3DMXM
Copy link
Author

3DMXM commented Apr 2, 2021

好的,谢谢

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