tidb throws error when querying zero datetime with table statistics #56480
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
report/customer
Customers have encountered this bug.
severity/major
sig/planner
SIG: Planner
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)
For certain sql_mode, timestamp data type allows values '0000-00-00 00:00:00'.
2. What did you expect to see? (Required)
There should be no error if a row has timpstamp column with value '0000-00-00 00:00:00'
3. What did you see instead (Required)
lots of following errors in tidb log:
4. What is your TiDB version? (Required)
v7.5.1
The text was updated successfully, but these errors were encountered: