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

请问是否可以实现类型兼容性检测? #121

Closed
phaibin opened this issue Nov 25, 2019 · 5 comments
Closed

请问是否可以实现类型兼容性检测? #121

phaibin opened this issue Nov 25, 2019 · 5 comments

Comments

@phaibin
Copy link

phaibin commented Nov 25, 2019

描述您想要的功能:

目前的检测选项check_column_type_change,可以针对类型完全不同做出警告,比如int -> varchar或者smallint -> int。但是有两个问题:

  1. 检测不出varchar(20) -> varchar(10)这种转换,这种转换其实是有问题的
  2. 对于smallint -> int其实是安全的转换,可以忽略

不知道能否优化这个选项的检测,增加类型兼容性的判断。谢谢!

描述您考虑过的解决/替代方案:

@hanchuanchuan
Copy link
Owner

该问题已优化,请选择V1.1.5-3 及之后版本

@phaibin
Copy link
Author

phaibin commented Dec 10, 2019

感谢!效率好高。感觉加的这个特性还是很nb的,建议写到文档里面,是个亮点

@phaibin phaibin closed this as completed Dec 10, 2019
@hanchuanchuan
Copy link
Owner

感谢建议~

@hanchuanchuan
Copy link
Owner

不好意思哈,其实拖蛮久了,最近有点忙

@phaibin
Copy link
Author

phaibin commented Dec 10, 2019

哈哈,对于一个人维护的开源项目,已经很棒了 👍

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