We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
mysql> create table t(a int); Query OK, 0 rows affected (0.07 sec) mysql> insert into t values(0),(20015),(20100); Query OK, 3 rows affected (0.02 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select date_add(a, interval 12345 DAY_HOUR) from t; +--------------------------------------+ | date_add(a, interval 12345 DAY_HOUR) | +--------------------------------------+ | 0001-04-27 09:00:00 | | 2003-05-13 09:00:00 | | 2003-05-29 09:00:00 | +--------------------------------------+ 3 rows in set, 3 warnings (0.01 sec)
MySQL 8.0 mysql> create table t(a int); Query OK, 0 rows affected (0.02 sec) mysql> insert into t values(0),(20015),(20100); Query OK, 3 rows affected (0.01 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select date_add(a, interval 12345 DAY_HOUR) from t; +--------------------------------------+ | date_add(a, interval 12345 DAY_HOUR) | +--------------------------------------+ | NULL | | NULL | | NULL | +--------------------------------------+ 3 rows in set, 3 warnings (0.01 sec)
mysql> select date_add(a, interval 12345 DAY_HOUR) from t; +--------------------------------------+ | date_add(a, interval 12345 DAY_HOUR) | +--------------------------------------+ | 0001-04-27 09:00:00 | | 2003-05-13 09:00:00 | | 2003-05-29 09:00:00 | +--------------------------------------+ 3 rows in set, 3 warnings (0.01 sec)
Master
The text was updated successfully, but these errors were encountered:
/severity moderate
Sorry, something went wrong.
fbcb35c
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
Master
The text was updated successfully, but these errors were encountered: