当前位置:网站首页>Bug record: data truncation: incorrect datetime value:
Bug record: data truncation: incorrect datetime value:
2022-06-12 17:45:00 【Integral mean value theorem】
java.lang.RuntimeException: org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
### The error may involve com.stylefeng.guns.rest.common.persistence.dao.MoocUserTMapper.updateById-Inline
### The error occurred while setting parameters
### SQL: UPDATE mooc_user_t SET nick_name=?, user_sex=?, birthday=?, email=?, user_phone=?, address=?, biography=?, life_state=?, begin_time=?, update_time=? WHERE UUID=?
### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
; ]; Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
### The error may involve com.stylefeng.guns.rest.common.persistence.dao.MoocUserTMapper.updateById-Inline
### The error occurred while setting parameters
### SQL: UPDATE mooc_user_t SET nick_name=?, user_sex=?, birthday=?, email=?, user_phone=?, address=?, biography=?, life_state=?, begin_time=?, update_time=? WHERE UUID=?
### Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
; ]; Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1; nested exception is com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
read log Find out
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00.0' for column 'begin_time' at row 1
The reason for the error : The reason for the time type in the database , Cause such a mistake .datetime With YYYY-MM-DD HH:MM:SS Format search and display DATETIME value . The scope of support is 1000-01-01 00:00:00 To 9999-12-31 23:59:59 . and TIMESTAMP Range supported by value 1970-01-01 08:00:01 To 2038-01-19 11:14:07 Store , about TIMESTAMP This error will be reported if it is not within this range .
resolvent :mysql Time type by timestamp Change to datetime That's it .
thank :https://blog.csdn.net/qq_39240270/article/details/88903447
边栏推荐
- 错误记录:IllegalStateException: Optional int parameter ‘xxxx‘ is
- Guitar Pro tutorial how to set up a MIDI keyboard
- Gerrit+2 triggers Jenkins task
- JDBC几个坑
- ssm常用到的依赖
- 73. 矩阵置零(标记法)
- 566. 重塑矩阵
- Exclusive interview with oppo find X5 Product Manager: deeply cultivate self-developed chips to create the ultimate flagship experience with the highest standards
- How to win the "Olympic Games" in retail technology for jd.com, the learning tyrant of the "regular examination"?
- Flink 维表异步查询的实现以及问题排查
猜你喜欢

Advanced mountain -asp Net core router basic use demo 0.1

Article name

Hangzhou AI developer meetup registration opens!

First acquaintance with go language
Memory control of node

Unprecedented analysis of Milvus source code architecture

Detailed explanation of shardingjdbc database and table

消息队列存储消息数据的 MySQL 表格

R language arma-garch-copula model and financial time series case

Risc-v ide mounriver studio v1.60 update point introduction
随机推荐
Are Huishang futures accounts reliable? Is the fund safe?
Kill program errors in the cradle with spotbugs
Cesium parabolic equation
Flink 维表异步查询的实现以及问题排查
Figma从入门到放弃
認識函數原創
I heard that distributed IDS cannot be incremented globally?
数组按指定顺序排序
grpc-swift入门
How to change Golan back to the English version when it becomes the Chinese version
消息队列存储消息数据的 MySQL 表格
Arm64 Stack backtrack
MIPS 通用寄存器 + 指令
R language arma-garch-copula model and financial time series case
Li Kou today's question 926 Flip string to monotonic increment
二分查找的理解
qemu+gdb小节
vant3+ts 封装uploader上传图片组件
SQL游标(cursor)详细说明及内部循环使用示例
Arm64 stack backtracking