You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release Version: v5.1.0-alpha-167-ga8ad9b7d3
Edition: Community
Git Commit Hash: a8ad9b7d3aa53d0181422d2b22fa8d57b7d56db1
Git Branch: master
UTC Build Time: 2021-06-05 07:04:28
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
5. Attachment
There are many related bugs.
Manipulate data with different units.
CREATETABLEt(c timestamp);
INSERT INTO t VALUES('2038-01-18 03:14:07');
UPDATE t SET c = adddate(c,INTERVAL 2880 MINUTE);
SELECT*FROM t;
ERROR 1292 (22007): Incorrect datetime value: '2038-01-20 03:14:07'
CREATETABLEt(c timestamp);
INSERT INTO t VALUES('2038-01-18 03:14:07');
UPDATE t SET c = adddate(c,INTERVAL 172800 SECOND);
SELECT*FROM t;
ERROR 1292 (22007): Incorrect datetime value: '2038-01-20 03:14:07'
Similar bugs on lower bound.
CREATETABLEt(c timestamp);
INSERT INTO t VALUES('1970-01-02 00:00:01');
UPDATE t SET c = adddate(c,INTERVAL -48 HOUR);
SELECT*FROM t;
ERROR 1292 (22007): Incorrect datetime value: '1969-12-31 00:00:01'
CREATETABLEt(c timestamp);
INSERT INTO t VALUES('1970-01-02 00:00:01');
UPDATE t SET c = adddate(c,INTERVAL -2880 MINUTE);
SELECT*FROM t;
ERROR 1292 (22007): Incorrect datetime value: '1969-12-31 00:00:01'
Similar bugs on other functions.
CREATETABLEt(c timestamp);
INSERT INTO t VALUES('2038-01-18 03:14:07');
UPDATE t SET c = subdate(c,INTERVAL -48 HOUR);
SELECT*FROM t;
ERROR 1292 (22007): Incorrect datetime value: '2038-01-20 03:14:07'
Similar bugs on other data types.
CREATETABLEt(c datetime);
INSERT INTO t VALUES('9999-12-30 23:59:59');
UPDATE t SET c = subtime(c,'-3 0:0:0');
SELECT*FROM t;
+---------------------+
| c |
+---------------------+
| 1816-04-0105:56:07 |
+---------------------+
Notice this update should fail and the read value is strange.
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
I ran sql-boundary on TiDB, and find the 50 failure cases.
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Update statement should got failed.
3. What did you see instead (Required)
Update statement successes, the select statement got error.
4. What is your TiDB version? (Required)
5. Attachment
There are many related bugs.
Manipulate data with different units.
Similar bugs on lower bound.
Similar bugs on other functions.
Similar bugs on other data types.
Notice this update should fail and the read value is strange.
The text was updated successfully, but these errors were encountered: