flowable / flowable/flowable-engine
使用mysql数据库排除flowable的mybatis使用java8和mybatis-plus情况下数据库字段错误
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 7h 8m
- Merged PRs (30d)
- 2
Description
**Describe the bug**
排除flowable的mybatis使用java8和mybatis-plus使用mysql数据库
**Expected behavior**
第一次启动初始化数据库正常,二次启动报错,错误内容为java.lang.ClassCastException: java.time.LocalDateTime cannot be cast to java.lang.String
**Code**
liquibase.changelog.StandardChangeLogHistoryService#getRanChangeSets
Date dateExecuted = null;
if (tmpDateExecuted instanceof Date) {
dateExecuted = (Date) tmpDateExecuted;
} else {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
dateExecuted = df.parse((String) tmpDateExecuted);
} catch (ParseException e) {
// Ignore ParseException and assume dateExecuted == null instead of aborting.
}
}
**建议**
建议表FLW_开头的表中类型为datatime的字段更换为timestamp
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.