Correct errors to match those of MySQL
Open
compatibility-mysql80
type/compatibility
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
For some cases the error number and message are different:
```
mysql-9.0.1> SELECT TIME '101112';
+---------------+
| TIME '101112' |
+---------------+
| 10:11:12 |
+---------------+
1 row in set (0.00 sec)
mysql-9.0.1> SELECT TIME '109112';
ERROR 1525 (HY000): Incorrect TIME value: '109112'
```
```
tidb> SELECT TIME '101112';
+---------------+
| TIME '101112' |
+---------------+
| 10:11:12 |
+---------------+
1 row in set (0.01 sec)
tidb> SELECT TIME '109112';
ERROR 1292 (22007): Truncated incorrect time value: '109112'
```
Contributor guide
Assessment
This issue has not been assessed yet.