【发布时间】:2021-08-27 09:31:44
【问题描述】:
我创建了一个到数据库 (MySQL) 的连接器。使用“On Table Row”并执行项目,我有这个错误:
ERROR 2021-06-10 12:46:59,830 [_pollingSource_LocalBD_FlowTest/executor.01] [event: ] org.mule.extension.db.internal.source.RowListener: Failed to query table 'myTable' for new rows. Value '0000-00-00' can not be represented as java.sql.Date
java.sql.SQLException: Value '0000-00-00' can not be represented as java.sql.Date
In data base there is a column "Date" with value 0000-00-00
我安装了其他驱动(先推荐的(5.1.48),现在是最新版本(8.0.25)),出现其他错误:
ERROR 2021-06-10 12:52:33,153 [_pollingSource_LocalBD_FlowTest/executor.01] [event: ] org.mule.extension.db.internal.source.RowListener: Failed to query table 'myTable' for new rows. Zero date value prohibited
java.sql.SQLException: Zero date value prohibited
我怎样才能解决它无需修改数据库?
谢谢
【问题讨论】: