-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
版本信息(Version)
release-4.2511.0
问题描述(Describe)
- ODC工作台在mysql5.7的情况下启动出现报错
截图或日志(Log)
Caused by: java.sql.SQLSyntaxErrorException: Invalid default value for 'update_time'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) ~[mysql-connector-java-8.0.30.jar:8.0.30]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.30.jar:8.0.30]
at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763) ~[mysql-connector-java-8.0.30.jar:8.0.30]如何复现(To Reproduce)
问题原因
- SQL初始化脚本中的建表语句在TIMESTAMP类型是没有设定默认值
- mysql5.7不支持for update nowait语法
解决方案
- 初始化脚本中的建表语句在TIMESTAMP类型是设定默认值
`gmt_create` TIMESTAMP NULL DEFAULT NULL
变更影响面
受影响的模块或功能
外部引用的潜在问题或风险
版本兼容性
测试建议
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
