Hi,
Apparently in MySQL you can enter dates with zero month and day (example: 2013-00-00).
When I read from the operation MySQL DB with Pentaho Kettle version 4.4.0 these dates I get the date of the end of November for the year before.
You can reproduce this issue by writing in the table input the following select:
and connect to MySQL.
Has anyone encountered this issue? Is there a connection parameter to control this behaviour?
I can handle this issue for specific field but I want a solution for all the date fields that I'm reading from MySQL DBs. There are a lot and I can reproduce this solution for any date field.
Thanks
Apparently in MySQL you can enter dates with zero month and day (example: 2013-00-00).
When I read from the operation MySQL DB with Pentaho Kettle version 4.4.0 these dates I get the date of the end of November for the year before.
You can reproduce this issue by writing in the table input the following select:
Code:
select str_to_date('2013' ,'%Y') as dt_field
Has anyone encountered this issue? Is there a connection parameter to control this behaviour?
I can handle this issue for specific field but I want a solution for all the date fields that I'm reading from MySQL DBs. There are a lot and I can reproduce this solution for any date field.
Thanks