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

审核时检测非法日期 #277

Closed
ganlanshu opened this issue Nov 2, 2020 · 5 comments
Closed

审核时检测非法日期 #277

ganlanshu opened this issue Nov 2, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@ganlanshu
Copy link

描述您想要的功能:
sql 自动检测时,对于非法的日期可以检测出来吗?如2020-11-31 日,2020-9-31,希望能检测出非法日期

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

可参考文档,资料,引用等:

@hanchuanchuan hanchuanchuan added the enhancement New feature or request label Nov 2, 2020
@hanchuanchuan
Copy link
Owner

当前仅对默认值添加了该检测, 该需求后续实现.

@hanchuanchuan
Copy link
Owner

该需求已添加. 请下载最新版本~~
Release v1.2.3-46 请选择小版本46及之后的版本.

@ganlanshu
Copy link
Author

该需求已添加. 请下载最新版本~~
Release v1.2.3-46 请选择小版本46及之后的版本.

下载了mac 46 版本,测试的时候,报了以下错误
image
输入的sql语句是
image

@ganlanshu
Copy link
Author

在配置文件里找到了 er_incorrect_datetime_value ,这个是错误级别,check的项目应该是哪个呢

@hanchuanchuan
Copy link
Owner

这种审核发给MySQL也会报错的, 所以没有开关. 而 审核的错误级别er_incorrect_datetime_value是为了可自定义是警告还是错误.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants