-
Couldn't load subscription status.
- Fork 690
fix date '0000-00-00 00:00:00.000000' parse #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
to support handling datetime '0000-00-00' as string. affect datetime, datetime2, date. (not timestamp for now)
set 0 to '0000-00-00' rather than '1970-01-01 08:01:00'
the4thdoctor
commented
May 21, 2018
any estimate of if/when this PR will be merged? It would be nice if I could chose how to handle the datetime.
Thanks
@the4thdoctor
Hi again! I'm terribly sorry that I missed the issue you posted! Me and my open source team will work on this issue.
Do you still think you need this feature? How would you like control over zero datetime?
- converter feature as pymysql provides it
- optional parameter to BinlogStreamReader
Hi, yes the feature is still very needed.
I think an optional parameter to BinlogStreamReader would be great. It gives me the possibility of making the feature an opt in.
Ta!
I think it's because that the first microsecond part is skipped when it returns
Nonedate_tostrargument to BinLogStreamReader to decide the behavior.please refer issus datetime '0000-00-00' return string '0000-00-00' #225