I have created a connector to database (MySQL). With a "On Table Row" and execute the project, I have this error:
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
I have installed other Driver (first the recommended (5.1.48), now the last version (8.0.25)), and other error appears:
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
How can I solve it without having to make modifications to the database?
Thanks