Please answer these questions before submitting your issue. Thanks!
create table t(a date);
insert into t values('0000-00-0');
Relate issue: #8637
mysql> create table t(a date);
Query OK, 0 rows affected (0.07 sec)
mysql> insert into t values('0000-00-0');
ERROR 1292 (22007): Incorrect date value: '0000-00-0' for column 'a' at row 1
mysql> create table t(a date);
Query OK, 0 rows affected (0.01 sec)
mysql> insert into t values('0000-00-0');
Query OK, 1 row affected (0.00 sec)
mysql> select * from t;
+------------+
| a |
+------------+
| 0000-00-00 |
+------------+
1 row in set (0.00 sec)
tidb-server -V or run select tidb_version(); on TiDB)?Thanks for your report, @wjhuang2016 ! Would you want to fix it?
Thanks for your report, @wjhuang2016 ! Would you want to fix it?
Yeah, I will try to fix it.
Thanks, @wjhuang2016 !
Most helpful comment
Yeah, I will try to fix it.