time: insert item lost the fraction when encountering time string with timezone suffix #35291
Labels
affects-4.0
This bug affects 4.0.x versions.
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.0
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.2
affects-6.3
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
MySQL has its warnings as
Incorrect time value: '2020-01-01 12:00:00.123456+05:00' for column 'd' at row 1
So it won't recognize the timezone suffix and convert the
12:00:00.123456
to its defaultUTC
timezone as07:00:00.123456
But TiDB will convert the
12:00:00.123456
(from source +5:00, yes we recognized it and used it as source time zone) to its defaultAsia/Shanghai timezone
(+8:00) as15:00:00.123456
, but unfortunately, we lost the fraction here.3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: