Open dveeden opened 1 year ago
Note that SLEEP()
will have a different return value if it was interrupted (both in MySQL and TiDB)
mysql> SELECT /*+ MAX_EXECUTION_TIME(1) */ SLEEP(1);
+----------+
| SLEEP(1) |
+----------+
| 1 |
+----------+
1 row in set (0.00 sec)
mysql> SELECT /*+ MAX_EXECUTION_TIME(2000) */ SLEEP(1);
+----------+
| SLEEP(1) |
+----------+
| 0 |
+----------+
1 row in set (1.00 sec)
Might be the same issue as #34344
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
This is what MySQL 8.0.23 returns:
3. What did you see instead (Required)
4. What is your TiDB version? (Required)