-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
bug default语法审核 #406
Comments
好的,已测试,下述两种写法在MySQL 5.7时第一种是没问题的。 create table t1(id int primary key,c1 int,
update_time timestamp default null ON UPDATE CURRENT_TIMESTAMP comment "更新时间");
create table t2(id int primary key,c1 int,
update_time timestamp not null default null ON UPDATE CURRENT_TIMESTAMP comment "更新时间"); |
首先感谢。 |
这个逻辑在goinception优化了,在MySQL v5.7是允许 |
update: 优化timestamp字段default null的审核逻辑 (#406)
由于此问题没有最近的活动,因此已被自动标记为陈旧。如果没有进一步的活动,会作为不活跃issue关闭。感谢你对本项目的贡献。 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
描述
错误字段:update_time timestamp default null ON UPDATE CURRENT_TIMESTAMP comment "更新时间",
inception能审核出来,返回:"Invalid default value for column 'update_time'."
goinception返回:pass(审核不出来这种错误的语法)
goinception v1.2.4
The text was updated successfully, but these errors were encountered: