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

表定义不正确,只能有一个TIMESTAMP字段在DEFAULT或ON UPDATE指定CURRENT_TIMESTAMP. #564

Open
diaowentao opened this issue Mar 23, 2023 · 2 comments
Labels
wontfix This will not be worked on

Comments

@diaowentao
Copy link

create table BOSS_WAITE_DEAL_DONE_RECORDS
(
ID int auto_increment not null comment '主键ID'
primary key,

CREATE_TIME timestamp default CURRENT_TIMESTAMP not null comment '创建时间',
MODIFY_TIME timestamp default CURRENT_TIMESTAMP not null ON UPDATE CURRENT_TIMESTAMP comment '最后一次修改时间',
unique key UNIQ_BOSS_WAITE_DEAL_DONE_RECORDS_ORDER_ID (ORDER_ID)
)
comment '待办事项临时记录表';

mysql实际支持,goinception这里并不支持
报错 表定义不正确,只能有一个TIMESTAMP字段在DEFAULT或ON UPDATE指定CURRENT_TIMESTAMP.

重现
模拟重现的步骤

环境

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

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

@hanchuanchuan
Copy link
Owner

可以设置参数check_timestamp_count

@stale
Copy link

stale bot commented Jun 18, 2023

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