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

default 类型解析错误 #369

Closed
niumanniu opened this issue Jul 30, 2021 · 2 comments
Closed

default 类型解析错误 #369

niumanniu opened this issue Jul 30, 2021 · 2 comments
Labels
wontfix This will not be worked on

Comments

@niumanniu
Copy link

niumanniu commented Jul 30, 2021

描述
datetime(6) default current_timestamp 语法是错误,没有审核出来。
正确的写法应该是datetime(6) default current_timestamp(6)

重现
create table t1(id int primary key,c1 int,rep_time datetime(6) DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(6));

环境

  • 数据库: [mysql/mariadb]
  • 版本: [例如 5.7.21]

参数
可能与问题相关的设置参数

hanchuanchuan added a commit that referenced this issue Aug 7, 2021
update: 添加datetime小数秒校验(#369)
@hanchuanchuan
Copy link
Owner

该问题已优化.请升级到v1.2.4-95版本后重试.

@stale
Copy link

stale bot commented Aug 22, 2021

由于此问题没有最近的活动,因此已被自动标记为陈旧。如果没有进一步的活动,会作为不活跃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.

@stale stale bot added the wontfix This will not be worked on label Aug 22, 2021
@stale stale bot closed this as completed Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants