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

int、tinyint、float等类型,default value的检查不符合预期 #6

Closed
BigChaoChao opened this issue Mar 8, 2019 · 1 comment

Comments

@BigChaoChao
Copy link
Contributor

BigChaoChao commented Mar 8, 2019

check_column_default_value = false

create table t1(id int primary key,c1 int default 1);
Invalid default value for column 'c1'.

check_column_default_value = true

create table t1(id int primary key,c1 int default "a");
解析结果为无异常
@hanchuanchuan
Copy link
Owner

merge #8

hanchuanchuan pushed a commit that referenced this issue Apr 26, 2019
update: 优化零值校验,基于服务器sql_mode规则
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