-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
alter table modify column to a time type may generate incorrect value #56051
Comments
This bug is introduced by #55873 . In this PR, we use For tidb/pkg/expression/contextsession/sessionctx.go Lines 236 to 238 in d6db1e8
And
For
So, if the out side code has a strong assumption that the returned current time's location, it will fail if we replace In Lines 68 to 82 in d6db1e8
In tidb/pkg/expression/builtin_time.go Lines 2504 to 2533 in d6db1e8
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
My local time zone is
Asia/Shanghai
2. What did you expect to see? (Required)
The value of
now()
andt
should not differs too much.3. What did you see instead (Required)
These two columns differs two hours
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: