Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Reading dates with zero month and day from MySQL

$
0
0
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:
Code:

select str_to_date('2013' ,'%Y') as dt_field
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

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>