-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Closed
Copy link
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.report/customerCustomers have encountered this bug.Customers have encountered this bug.severity/moderatesig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
create table t (id bigint primary key, name varchar(20));
alter table t add column d date not null;
update t set name = 'x';
2. What did you expect to see? (Required)
No error
3. What did you see instead (Required)
ERROR 1292 (22007) at line 5: Incorrect date value: '0000-00-00'
But only if the column was added through ALTER TABLE, not if the column d was included in the CREATE TABLE.
4. What is your TiDB version? (Required)
release-6.5
tidb_version(): Release Version: v6.6.0-alpha-146-g5eea731db0-dirty
Edition: Community
Git Commit Hash: 5eea731db0712f1c8a90a3a81e7881da4e400f95
Git Branch: HEAD
UTC Build Time: 2025-01-20 17:22:35
GoVersion: %!s(bool=false)
Race Enabled: 6.2.0-alpha
TiKV Min Version: %!s(bool=false)
Check Table Before Drop: unistore
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.report/customerCustomers have encountered this bug.Customers have encountered this bug.severity/moderatesig/sql-infraSIG: SQL InfraSIG: SQL Infratype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.