-
Notifications
You must be signed in to change notification settings - Fork 1k
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
time "-00:00:00.01" parse value is not right #677
Comments
thanks for reporting, I can reproduce it. I'll take a look at my spare time, can you help to check what's wrong with the source code? maybe go-mysql/replication/row_event.go Lines 1098 to 1107 in d166653
|
I test it will go to code
when intPart=-1, then it will intPart++ to intPart=0
|
@rudy-gao Thanks. I now know we forget to check the go-mysql/replication/row_event.go Lines 1509 to 1511 in d166653
go-mysql/replication/row_event.go Lines 1408 to 1410 in d166653
Do you have time to file a PR to fix it? Also some unit tests for |
@lance6716 For bug I modify decodeTime2 and timeFormat func, then add test cases and pass. Sorry, for my personal reason, I can not commit a PR, so modify code as following:
For test case:
|
Thanks @rudy-gao ! I think you have finished all the code work. I'll file a PR soon 👍 |
Hello,
When I use go-mysql version 1.4.0, then I insert "-00:00:00.01" to time(2) type ,but parse binlog value is "00:00:00"
The text was updated successfully, but these errors were encountered: