seckill icon indicating copy to clipboard operation
seckill copied to clipboard

创建success_killed表没有设置create_time自动更新

Open LinG955 opened this issue 4 years ago • 2 comments

``create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间' 要设置create_time自动更新,因为insertSuccessKilled()没有插入create_time,create_time为默认值00-00-00 00:00:00。不然在测试queryByIdWithSeckill()时程序会报错:Caused by: com.mysql.cj.exceptions.DataReadException: Zero date value prohibited

TIM截图20200518200101

LinG955 avatar May 18 '20 12:05 LinG955

version:8.0.19

LinG955 avatar May 18 '20 12:05 LinG955

可以提个pr 我给你合进去

codingXiaxw avatar May 18 '20 13:05 codingXiaxw